From 08f329729781c0f4cee09b89a304444934f50804 Mon Sep 17 00:00:00 2001 From: pi3c Date: Mon, 29 Jan 2024 07:29:02 +0300 Subject: [PATCH] docker tests finished ok --- tests/conftest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index 136265b..7605033 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -55,7 +55,7 @@ def app(): yield app -@pytest_asyncio.fixture(scope="session") +@pytest_asyncio.fixture(scope="function") async def client(app): async with AsyncClient( app=app, base_url="http://localhost:8000/api/v1/menus", @@ -63,7 +63,7 @@ async def client(app): yield async_client -@pytest_asyncio.fixture(scope="session") +@pytest_asyncio.fixture(scope="function") async def asession() -> AsyncGenerator[AsyncSession, None]: async with async_session_maker() as session: yield session