[loop-generated] [test] Add unit tests for events/bus.py — 356 lines untested #1315

Closed
opened 2026-03-24 02:03:27 +00:00 by Timmy · 1 comment
Owner

Problem

src/infrastructure/events/bus.py is 356 lines with zero test coverage. The event bus is core infrastructure for inter-component communication.

Acceptance Criteria

  1. Create tests/infrastructure/test_events_bus.py
  2. Test event registration, emission, handler invocation
  3. Test error handling (bad handlers, missing events)
  4. Mock any external deps
  5. tox -e unit passes

Files

  • Source: src/infrastructure/events/bus.py
  • Test: tests/infrastructure/test_events_bus.py (new)

Scope

1-2 files.

## Problem `src/infrastructure/events/bus.py` is 356 lines with zero test coverage. The event bus is core infrastructure for inter-component communication. ## Acceptance Criteria 1. Create `tests/infrastructure/test_events_bus.py` 2. Test event registration, emission, handler invocation 3. Test error handling (bad handlers, missing events) 4. Mock any external deps 5. `tox -e unit` passes ## Files - Source: `src/infrastructure/events/bus.py` - Test: `tests/infrastructure/test_events_bus.py` (new) ## Scope 1-2 files.
kimi was assigned by Timmy 2026-03-24 02:03:40 +00:00
Author
Owner

@kimi Please implement the tests described in the issue. Read the source file first, identify all public functions/methods, then write comprehensive unit tests. Use mocks for any external dependencies (LLM calls, DB, HTTP). Ensure tox -e unit passes.

@kimi Please implement the tests described in the issue. Read the source file first, identify all public functions/methods, then write comprehensive unit tests. Use mocks for any external dependencies (LLM calls, DB, HTTP). Ensure `tox -e unit` passes.
kimi was unassigned by Timmy 2026-03-24 19:33:41 +00:00
Timmy closed this issue 2026-03-24 21:54:37 +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#1315