Problem
One test in tests/unit/test_websocket_router.py is permanently skipped because get_batch_status is imported at module level from queue.jobs, which triggers a real Redis connection attempt before fakeredis patches can be applied.
Fix Options
- Defer the import inside the function under test (preferred)
- Use
importlib.reload() after patching in the test setup
Acceptance Criteria
uv run pytest tests/ -q shows 0 skipped
- No real Redis connection required in unit tests
Context
Discovered during Phase 1 completion audit. The overall test suite passes (334+ tests) but this one test has been skipped since the websocket router was implemented.
Problem
One test in
tests/unit/test_websocket_router.pyis permanently skipped becauseget_batch_statusis imported at module level fromqueue.jobs, which triggers a real Redis connection attempt beforefakeredispatches can be applied.Fix Options
importlib.reload()after patching in the test setupAcceptance Criteria
uv run pytest tests/ -qshows 0 skippedContext
Discovered during Phase 1 completion audit. The overall test suite passes (334+ tests) but this one test has been skipped since the websocket router was implemented.