From c6e8e78c95ac93c83fbdea1505a51f67d24c2d1e Mon Sep 17 00:00:00 2001 From: pi3c Date: Mon, 5 Feb 2024 20:30:02 +0300 Subject: [PATCH] fix --- tests/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/conftest.py b/tests/conftest.py index 30f1296..f5d3c60 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -46,7 +46,7 @@ async def get_test_session() -> AsyncGenerator[AsyncSession, None]: @pytest_asyncio.fixture(scope='session') -async def client() -> AsyncGenerator[AsyncClient, None]: +async def client(event_loop) -> AsyncGenerator[AsyncClient, None]: app: FastAPI = create_app() app.dependency_overrides[get_async_session] = get_test_session