CI's `pytest --collect-only` was exiting 5 (no tests collected) because the test module used `pytest.skip(..., allow_module_level=True)` at import time — skipped modules never enter the collection phase. Switch to a per-test `skipif` marker driven by ANTHROPIC_API_KEY + COMPOSIO_API_KEY presence, and lazy-import `graph.router_node` inside the test body so module import works without COMPOSIO_API_KEY. Result: 21 tests collect in both environments; live tests run only when both keys are present. Verified locally with env -i. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| conftest.py | ||
| test_routing_golden.py | ||