[claude] Add unit tests for orchestration_loop.py (#1278) #1311
Reference in New Issue
Block a user
Delete Branch "claude/issue-1278"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #1278
Creates
tests/timmy/test_orchestration_loop.pywith 25+ test cases covering:VassalCycleRecord: defaults,healthyproperty, dispatch countersVassalOrchestratorproperties: initial state,get_status, history copy safety_resolve_interval: explicit value, settings fallback, exception fallbackrun_cycle: cycle count increment, record appended to history, broadcast called_step_backlog: empty backlog early return, exception → errors, max dispatch cap, already-dispatched skip_step_agent_health: stuck agents recorded, nudges counted, exception → errors_step_house_health: warnings recorded, cleanup triggered at 80% disk, exception → errors_broadcast: successful payload, import error swallowedstart/stop: running state transitions, double-start no-opAll external deps (Gitea, LLM, ws_manager, config) are mocked.
tox -e unitpasses (647 tests).