MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / _force_mock_providers

Function _force_mock_providers

tests/test_cli.py:29–34  ·  view source on GitHub ↗

Keep every CLI test deterministic and offline.

(monkeypatch: pytest.MonkeyPatch)

Source from the content-addressed store, hash-verified

27
28@pytest.fixture(autouse=True)
29def _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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected