make the shared connection internal to the db module

This should make it easier to refactor the code for removing the
databases package.
This commit is contained in:
ducklet 2023-11-26 18:41:32 +01:00
parent 22ea553f48
commit 1f42538481
3 changed files with 27 additions and 23 deletions

View file

@ -17,7 +17,7 @@ def event_loop():
@pytest_asyncio.fixture(scope="session")
async def shared_conn():
c = db.shared_connection()
c = db._shared_connection()
await c.connect()
await db.apply_db_patches(c)