From 2373ea25451c8e92dbb728e1b28d2b8119772afb Mon Sep 17 00:00:00 2001 From: grillazz Date: Sun, 11 Jan 2026 08:46:16 +0100 Subject: [PATCH] refactor: remove unnecessary await from database session commit in client fixture --- tests/conftest.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index 1a954d7..25b3a50 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -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",