[kimi] Add unit tests for orchestration_loop.py (#1278) #1312

Closed
kimi wants to merge 1 commits from kimi/issue-1278 into main

1 Commits

Author SHA1 Message Date
kimi
51b1338453 test: Add unit tests for orchestration_loop.py
Some checks failed
Tests / lint (pull_request) Failing after 41s
Tests / test (pull_request) Has been skipped
Add comprehensive test coverage for the VassalOrchestrator core module:

- VassalCycleRecord dataclass tests (creation, health property)
- VassalOrchestrator initialization tests
- run_cycle() tests for backlog, agent health, house health steps
- Background loop start/stop tests
- Interval resolution tests
- WebSocket broadcast tests (success and graceful degradation)
- Module singleton tests

All external dependencies (Gitea, settings, WebSocket manager) are mocked.
Tests verify graceful error handling at each step.

Fixes #1278
2026-03-23 22:00:59 -04:00