MCPcopy Create free account
hub / github.com/AQ-MedAI/MedMemoryBench / api_auth

Function api_auth

methods/MIRIX/tests/test_memory_integration.py:79–86  ·  view source on GitHub ↗

Create org and client in DB once per module; yield auth for per-test client creation.

(server_process)

Source from the content-addressed store, hash-verified

77
78@pytest_asyncio.fixture(scope="module", loop_scope="module")
79async def api_auth(server_process):
80 """Create org and client in DB once per module; yield auth for per-test client creation."""
81 from conftest import _create_client_and_key
82
83 auth = await _create_client_and_key(TEST_CLIENT_ID, TEST_ORG_ID, org_name="Demo Org")
84 os.environ.setdefault("MIRIX_API_URL", "http://localhost:8000")
85 os.environ["MIRIX_API_KEY"] = auth["api_key"]
86 return auth
87
88
89@pytest_asyncio.fixture

Callers

nothing calls this directly

Calls 2

_create_client_and_keyFunction · 0.90
setdefaultMethod · 0.45

Tested by

no test coverage detected