Create org and client in DB once per module; yield auth for per-test client creation.
(server_process)
| 77 | |
| 78 | @pytest_asyncio.fixture(scope="module", loop_scope="module") |
| 79 | async 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 |
nothing calls this directly
no test coverage detected