KI-Konzil/backend/tests
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
..
__init__.py Implement Phase 1: LangGraph backend MVP 2026-02-20 16:33:39 +00:00
test_api.py Implement Phase 1: LangGraph backend MVP 2026-02-20 16:33:39 +00:00
test_blueprint_api.py Implement Phase 3: dynamic graph builder, blueprint persistence, and CRUD API 2026-02-21 10:28:27 +00:00
test_blueprint_service.py Fix React hook anti-patterns, incorrect mock paths, and unused code 2026-02-22 10:29:54 +00:00
test_dynamic_graph_builder.py Fix React hook anti-patterns, incorrect mock paths, and unused code 2026-02-22 10:29:54 +00:00
test_god_mode.py Fix React hook anti-patterns, incorrect mock paths, and unused code 2026-02-22 10:29:54 +00:00
test_routing.py Fix React hook anti-patterns, incorrect mock paths, and unused code 2026-02-22 10:29:54 +00:00
test_run_service.py Add DB-backed tests for run_service CRUD functions 2026-02-23 13:07:01 +00:00
test_run_store.py Implement Phase 1: LangGraph backend MVP 2026-02-20 16:33:39 +00:00
test_state.py Implement Phase 1: LangGraph backend MVP 2026-02-20 16:33:39 +00:00
test_tools.py Fix React hook anti-patterns, incorrect mock paths, and unused code 2026-02-22 10:29:54 +00:00