Why
Fleet coverage initiative round 10 remains below the 90% objective. The next slice must prove a real behavioral branch in dashboard news-feed loading, not pad the metric.
Scope
Add a discriminating regression in tests/test_dashboard.py for an uncovered SQLite manager-key branch in ui/dashboard.py (load_news_stream).
Non-Goals
- Do NOT change CI or workflow configuration.
- Do NOT add trivial getter or import-only tests.
Tasks
Acceptance Criteria
Implementation Notes
Coverage-autopilot round 10; low blast radius only. If measured coverage is already at or above 90%, comment and close without opening a PR.
Why
Fleet coverage initiative round 10 remains below the 90% objective. The next slice must prove a real behavioral branch in dashboard news-feed loading, not pad the metric.
Scope
Add a discriminating regression in
tests/test_dashboard.pyfor an uncovered SQLite manager-key branch inui/dashboard.py(load_news_stream).Non-Goals
Tasks
pytest tests/test_dashboard.py -k news --cov=ui/dashboard.py --cov-report=term-missingand record baseline in the PR body.tests/test_dashboard.py, add a regression forload_news_streamwhen SQLite databases usemanagers.idinstead ofmanagers.manager_idinui/dashboard.py, and record deliberate-break plus measured coverage delta in the PR body.Acceptance Criteria
pytest tests/test_dashboard.py -k news --cov=ui/dashboard.py --cov-report=term-missingexits 0 with measured coverage delta recorded in the PR body.Implementation Notes
Coverage-autopilot round 10; low blast radius only. If measured coverage is already at or above 90%, comment and close without opening a PR.