Skip to content

## 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_nav resolve Layout and pass pipelines_dir/docs_base to 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.

Batch Result

  • status: done
  • batch queue_id: fa9ae36ce1aa
  • session: bf8a344f-5f23-4791-ab7b-17a624a7fc7f
  • batch duration: 441.8s