## Test coverage: mcp/pipeio
Test coverage: mcp/pipeio.py wrapper functions¶
Add tests for projio's pipeio MCP wrapper functions in src/projio/mcp/pipeio.py.
What to test¶
- Unavailable fallback: when pipeio is not installed, all functions return
{"error": "pipeio package not available"}. - Layout pass-through: verify
pipeio_flow_new,pipeio_registry_scan,pipeio_docs_collect,pipeio_docs_navresolve Layout and passpipelines_dir/docs_baseto pipeio functions. - Error handling: verify exceptions from pipeio are caught and returned as error dicts.
Where¶
- Source:
src/projio/mcp/pipeio.py - Tests: create
tests/test_mcp_pipeio.py
Approach¶
Use monkeypatch on PROJIO_ROOT env var. Mock pipeio.mcp functions to verify they receive the correct kwargs (pipelines_dir, docs_base). Test unavailable path by patching the import check. Write .projio/config.yml with custom layout to verify Layout resolution.
Related Notes¶
- issue-arash-20260412-013422-048012.md — Sibling test coverage issue in the same batch
- issue-arash-20260412-013412-040281.md — Sibling test coverage issue in the same batch
- issue-arash-20260412-013402-247547.md — Sibling test coverage issue in the same batch
- issue-arash-20260412-013344-955432.md — Sibling test coverage issue in the same batch
- issue-arash-20260411-155000-964485.md — Directly relates to pipeio_registry_scan, one of the functions this test coverage issue targets
Batch Result¶
- status: done
- batch queue_id:
fa9ae36ce1aa - session:
bf8a344f-5f23-4791-ab7b-17a624a7fc7f - batch duration: 441.8s