Keep every CLI test deterministic and offline.
(monkeypatch: pytest.MonkeyPatch)
| 27 | |
| 28 | @pytest.fixture(autouse=True) |
| 29 | def _force_mock_providers(monkeypatch: pytest.MonkeyPatch) -> None: |
| 30 | """Keep every CLI test deterministic and offline.""" |
| 31 | monkeypatch.setenv("PAPERFLOW_LLM_PROVIDER", "mock") |
| 32 | monkeypatch.setenv("PAPERFLOW_EMBED_PROVIDER", "hash") |
| 33 | for var in ("OPENAI_API_KEY", "ANTHROPIC_API_KEY"): |
| 34 | monkeypatch.delenv(var, raising=False) |
| 35 | |
| 36 | |
| 37 | @pytest.mark.unit |
nothing calls this directly
no outgoing calls
no test coverage detected