Summary
catalyst.py currently has no test coverage. Add unit tests under tests/ to cover the catalyst calendar builder logic.
What to Test
- Calendar generation returns expected structure (list of dicts with date, ticker, event type)
- Edge cases: empty watchlist, future dates only, past dates only
- Output is sorted chronologically
- No live API calls in tests (use
pytest-mock or responses to mock)
Files Involved
trg_workbench/analytics/catalyst.py — source under test
tests/test_catalyst.py — new file to create
Acceptance Criteria
Notes
No deep financial knowledge required — focus on input/output correctness and edge case handling.
Summary
catalyst.pycurrently has no test coverage. Add unit tests undertests/to cover the catalyst calendar builder logic.What to Test
pytest-mockorresponsesto mock)Files Involved
trg_workbench/analytics/catalyst.py— source under testtests/test_catalyst.py— new file to createAcceptance Criteria
tests/test_catalyst.pycreated with at least 4 test casespytesttests/folderNotes
No deep financial knowledge required — focus on input/output correctness and edge case handling.