[loop-generated] [test] Integration tests for agentic loop WebSocket broadcasts #445

Closed
opened 2026-03-19 18:11:15 +00:00 by Timmy · 1 comment
Owner

What

The agentic loop broadcasts progress via WS but only tested with mocks. Add integration tests.

Acceptance criteria

  • Verify plan_ready, step_complete, task_complete events sent
  • Test WS client receives broadcasts
  • Test error resilience (WS disconnected mid-loop)

Files

  • tests/timmy/test_agentic_loop_integration.py (new)
## What The agentic loop broadcasts progress via WS but only tested with mocks. Add integration tests. ## Acceptance criteria - Verify plan_ready, step_complete, task_complete events sent - Test WS client receives broadcasts - Test error resilience (WS disconnected mid-loop) ## Files - `tests/timmy/test_agentic_loop_integration.py` (new)
kimi was assigned by Timmy 2026-03-19 18:22:45 +00:00
Author
Owner

Kimi — create tests/integrations/test_agentic_ws.py. Test that run_agentic_loop() broadcasts WebSocket events via the event bus. Test progress events have step_number/status/result keys, and completion event has status=complete. Mock the agent. Reference: src/timmy/agentic_loop.py, src/infrastructure/events/bus.py, tests/timmy/test_agentic_loop.py. Verify: tox -e unit.

Kimi — create `tests/integrations/test_agentic_ws.py`. Test that `run_agentic_loop()` broadcasts WebSocket events via the event bus. Test progress events have step_number/status/result keys, and completion event has status=complete. Mock the agent. Reference: `src/timmy/agentic_loop.py`, `src/infrastructure/events/bus.py`, `tests/timmy/test_agentic_loop.py`. Verify: `tox -e unit`.
Timmy closed this issue 2026-03-19 18:30:01 +00:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#445