MCPcopy Create free account
hub / github.com/CodeGraphContext/CodeGraphContext / _make

Function _make

tests/unit/api/test_api_auth.py:40–47  ·  view source on GitHub ↗
(api_key)

Source from the content-addressed store, hash-verified

38 """
39
40 def _make(api_key):
41 if api_key is None:
42 monkeypatch.delenv("CGC_API_KEY", raising=False)
43 else:
44 monkeypatch.setenv("CGC_API_KEY", api_key)
45 app = create_app()
46 app.dependency_overrides[get_server] = lambda: FakeServer()
47 return TestClient(app)
48
49 return _make
50

Callers

nothing calls this directly

Calls 2

create_appFunction · 0.90
FakeServerClass · 0.70

Tested by

no test coverage detected