refactor: remove unnecessary await from database session commit in client fixture

This commit is contained in:
grillazz
2026-01-11 08:46:16 +01:00
parent 5080eda3ac
commit 2373ea2545

View File

@@ -80,14 +80,13 @@ async def db_session():
@pytest.fixture(scope="function")
async def client(db_session) -> AsyncGenerator[AsyncClient, Any]: # noqa: ARG001
async def client(db_session) -> AsyncGenerator[AsyncClient, Any]:
transport = ASGITransport(
app=app,
)
async def override_get_db():
yield db_session
await db_session.commit()
async with AsyncClient(
base_url="http://testserver/v1",