()
| 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 |
nothing calls this directly
no test coverage detected
searching dependent graphs…