MCPcopy
hub / github.com/tortoise/tortoise-orm / _db_fixture

Function _db_fixture

conftest.py:206–214  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

204
205 @pytest_asyncio.fixture(scope="function")
206 async def _db_fixture():
207 db_url = os.getenv("TORTOISE_TEST_DB", "sqlite://:memory:")
208 async with tortoise_test_context(
209 modules=modules,
210 db_url=db_url,
211 app_label=app_label,
212 connection_label=connection_label,
213 ) as ctx:
214 yield ctx
215
216 return _db_fixture

Callers

nothing calls this directly

Calls 1

tortoise_test_contextFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…