refactor: Phase 3 — reorganize tests into module-mirroring subdirectories

Move 97 test files from flat tests/ into 13 subdirectories:
  tests/dashboard/   (8 files — routes, mobile, mission control)
  tests/swarm/       (17 files — coordinator, docker, routing, tasks)
  tests/timmy/       (12 files — agent, backends, CLI, tools)
  tests/self_coding/  (14 files — git safety, indexer, self-modify)
  tests/lightning/   (3 files — L402, LND, interface)
  tests/creative/    (8 files — assembler, director, image/music/video)
  tests/integrations/ (10 files — chat bridge, telegram, voice, websocket)
  tests/mcp/         (4 files — bootstrap, discovery, executor)
  tests/spark/       (3 files — engine, tools, events)
  tests/hands/       (3 files — registry, oracle, phase5)
  tests/scripture/   (1 file)
  tests/infrastructure/ (3 files — router cascade, API)
  tests/security/    (3 files — XSS, regression)

Fix Path(__file__) reference in test_mobile_scenarios.py for new depth.
Add __init__.py to all test subdirectories.

Tests: 1503 passed, 9 failed (pre-existing), 53 errors (pre-existing)

https://claude.ai/code/session_019oMFNvD8uSGSSmBMGkBfQN
This commit is contained in:
Claude
2026-02-26 21:21:28 +00:00
parent 6045077144
commit 4e11dd2490
104 changed files with 57 additions and 3 deletions

54
MEMORY.md Normal file
View File

@@ -0,0 +1,54 @@
# Timmy Hot Memory
> Working RAM — always loaded, ~300 lines max, pruned monthly
> Last updated: 2026-02-26
---
## Current Status
**Agent State:** Operational
**Mode:** Development
**Active Tasks:** 0
**Pending Decisions:** None
---
## Standing Rules
1. **Sovereignty First** — No cloud dependencies
2. **Local-Only Inference** — Ollama on localhost
3. **Privacy by Design** — Telemetry disabled
4. **Tool Minimalism** — Use tools only when necessary
5. **Memory Discipline** — Write handoffs at session end
---
## Agent Roster
| Agent | Role | Status |
|-------|------|--------|
| Timmy | Core | Active |
---
## User Profile
**Name:** (not set)
**Interests:** (to be learned)
---
## Key Decisions
(none yet)
---
## Pending Actions
- [ ] Learn user's name
---
*Prune date: 2026-02-25*

View File

View File

View File

@@ -22,7 +22,7 @@ from unittest.mock import AsyncMock, MagicMock, patch
def _css() -> str:
"""Read the main stylesheet."""
css_path = Path(__file__).parent.parent / "static" / "style.css"
css_path = Path(__file__).parent.parent.parent / "static" / "style.css"
return css_path.read_text()
@@ -290,13 +290,13 @@ def test_M605_health_status_passes_model_to_template(client):
def _mobile_html() -> str:
"""Read the mobile template source."""
path = Path(__file__).parent.parent / "src" / "dashboard" / "templates" / "mobile.html"
path = Path(__file__).parent.parent.parent / "src" / "dashboard" / "templates" / "mobile.html"
return path.read_text()
def _swarm_live_html() -> str:
"""Read the swarm live template source."""
path = Path(__file__).parent.parent / "src" / "dashboard" / "templates" / "swarm_live.html"
path = Path(__file__).parent.parent.parent / "src" / "dashboard" / "templates" / "swarm_live.html"
return path.read_text()

0
tests/hands/__init__.py Normal file
View File

View File

View File

View File

0
tests/mcp/__init__.py Normal file
View File

View File

View File

View File

0
tests/spark/__init__.py Normal file
View File

0
tests/swarm/__init__.py Normal file
View File

0
tests/timmy/__init__.py Normal file
View File

Some files were not shown because too many files have changed in this diff Show More