Claude
|
3e51434b4b
|
test: add 157 functional tests covering 8 low-coverage modules
Analyze test coverage (75.3% → 85.4%) and add functional test suites
for the major gaps identified:
- test_agent_core.py: Full coverage for agent_core/interface.py (0→100%)
and agent_core/ollama_adapter.py (0→100%) — data classes, factories,
abstract enforcement, perceive/reason/act/recall workflow, effect logging
- test_docker_runner.py: Full coverage for swarm/docker_runner.py (0→100%)
— container spawn/stop/list lifecycle with mocked subprocess
- test_timmy_tools.py: Tool usage tracking, persona toolkit mapping,
catalog generation, graceful degradation without Agno
- test_routes_tools.py: /tools page, API stats endpoint, and WebSocket
/swarm/live connect/disconnect/send lifecycle (41→82%)
- test_voice_tts_functional.py: VoiceTTS init, speak, volume clamping,
voice listing, graceful degradation (41→94%)
- test_watchdog_functional.py: _run_tests, watch loop state transitions,
regression detection, KeyboardInterrupt (47→97%)
- test_lnd_backend.py: LND init from params/env, grpc stub enforcement,
method-level BackendNotAvailableError, settle returns False (25→61%)
- test_swarm_routes_functional.py: Agent spawn/stop, task CRUD, auction,
insights, UI partials, error paths (63→92%)
https://claude.ai/code/session_01WU4h3cQQiouMwmgYmAgkMM
|
2026-02-24 23:36:50 +00:00 |
|