Cover manifest.py lazy-loader paths in unit tests #304

Closed
opened 2026-06-26 20:30:56 -04:00 by didericis-claude · 0 comments
Collaborator

From quality-eval (medium priority).

The on-disk load_for_agent / require_agent branches in bot_bottle/manifest.py (~lines 444, 501-512, 557-563) are only hit by the integration suite, so a critical module relies on Docker for branch coverage.

Task: Add a tmp_path-style unit fixture that writes agents/*.md + bottles/*.md and exercises the unknown-agent / unreadable-file / require_agent disk paths. Target manifest.py >=97%.

No PRD required (test coverage).

From quality-eval (medium priority). The on-disk `load_for_agent` / `require_agent` branches in `bot_bottle/manifest.py` (~lines 444, 501-512, 557-563) are only hit by the integration suite, so a critical module relies on Docker for branch coverage. **Task:** Add a `tmp_path`-style unit fixture that writes `agents/*.md` + `bottles/*.md` and exercises the unknown-agent / unreadable-file / require_agent disk paths. Target manifest.py >=97%. No PRD required (test coverage).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: didericis/bot-bottle#304