forked from Rockachopa/Timmy-time-dashboard
- src/timmy/ — Agno agent wrapper (llama3.2 via Ollama, SQLite memory, TIMMY_SYSTEM_PROMPT) - src/dashboard/ — FastAPI + HTMX + Jinja2 Mission Control UI - /health + /health/status (Ollama ping, HTMX 30s poll) - /agents list + /agents/timmy/chat (HTMX form submission) - static/style.css — dark terminal mission-control aesthetic - tests/ — 27 pytest tests (prompts, agent config, dashboard routes); no Ollama required - pyproject.toml — hatchling build, pytest configured with pythonpath=src https://claude.ai/code/session_01M4L3R98N5fgXFZRvV8X9b6
34 lines
759 B
Python
34 lines
759 B
Python
from timmy.prompts import TIMMY_SYSTEM_PROMPT, TIMMY_STATUS_PROMPT
|
|
|
|
|
|
def test_system_prompt_not_empty():
|
|
assert TIMMY_SYSTEM_PROMPT.strip()
|
|
|
|
|
|
def test_system_prompt_has_timmy_identity():
|
|
assert "Timmy" in TIMMY_SYSTEM_PROMPT
|
|
|
|
|
|
def test_system_prompt_mentions_sovereignty():
|
|
assert "sovereignty" in TIMMY_SYSTEM_PROMPT.lower()
|
|
|
|
|
|
def test_system_prompt_references_local():
|
|
assert "local" in TIMMY_SYSTEM_PROMPT.lower()
|
|
|
|
|
|
def test_system_prompt_is_multiline():
|
|
assert "\n" in TIMMY_SYSTEM_PROMPT
|
|
|
|
|
|
def test_status_prompt_not_empty():
|
|
assert TIMMY_STATUS_PROMPT.strip()
|
|
|
|
|
|
def test_status_prompt_has_timmy():
|
|
assert "Timmy" in TIMMY_STATUS_PROMPT
|
|
|
|
|
|
def test_prompts_are_distinct():
|
|
assert TIMMY_SYSTEM_PROMPT != TIMMY_STATUS_PROMPT
|