KI-Konzil/backend
Claude 828038ec02
Add DB-backed tests for run_service CRUD functions
Expand test_run_service.py from a single stub to a full test suite
using an in-memory SQLite database (same pattern as test_blueprint_service.py).

New test classes cover:
- TestCreateRun: verifies field storage, blueprint_id, execution_mode, created_at
- TestGetRun: existing run retrieval and None for unknown ID
- TestListRuns: empty list, full listing, limit and offset pagination
- TestUpdateRun: status changes, auto-setting completed_at on terminal
  statuses (completed/failed), not setting it for non-terminal statuses,
  storing final_draft/critic_score/iteration_count, and silently ignoring
  unknown field keys via the hasattr guard

All tests use isolated fixtures that create and drop tables per test,
ensuring no state leaks between cases.

https://claude.ai/code/session_01MLq4Vjq9XWKPtu3iX3iqL3
2026-02-23 13:07:01 +00:00
..
agents Implement Phase 1: LangGraph backend MVP 2026-02-20 16:33:39 +00:00
alembic Implement Phase 4: tools, God Mode, and missing features 2026-02-21 10:53:12 +00:00
api Fix React hook anti-patterns, incorrect mock paths, and unused code 2026-02-22 10:29:54 +00:00
models Implement Phase 4: tools, God Mode, and missing features 2026-02-21 10:53:12 +00:00
services Fix React hook anti-patterns, incorrect mock paths, and unused code 2026-02-22 10:29:54 +00:00
tests Add DB-backed tests for run_service CRUD functions 2026-02-23 13:07:01 +00:00
tools Implement Phase 4: tools, God Mode, and missing features 2026-02-21 10:53:12 +00:00
alembic.ini Implement Phase 3: dynamic graph builder, blueprint persistence, and CRUD API 2026-02-21 10:28:27 +00:00
database.py Implement Phase 4: tools, God Mode, and missing features 2026-02-21 10:53:12 +00:00
Dockerfile Implement Phase 1: LangGraph backend MVP 2026-02-20 16:33:39 +00:00
main.py Implement Phase 4: tools, God Mode, and missing features 2026-02-21 10:53:12 +00:00
pytest.ini Implement Phase 1: LangGraph backend MVP 2026-02-20 16:33:39 +00:00
requirements.txt Implement Phase 4: tools, God Mode, and missing features 2026-02-21 10:53:12 +00:00
state.py Implement Phase 1: LangGraph backend MVP 2026-02-20 16:33:39 +00:00