docker tests finished ok

develop
Сергей Ванюшкин 2024-01-29 07:29:02 +03:00
parent b5da5736e9
commit 08f3297297
1 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ def app():
yield app yield app
@pytest_asyncio.fixture(scope="session") @pytest_asyncio.fixture(scope="function")
async def client(app): async def client(app):
async with AsyncClient( async with AsyncClient(
app=app, base_url="http://localhost:8000/api/v1/menus", app=app, base_url="http://localhost:8000/api/v1/menus",
@ -63,7 +63,7 @@ async def client(app):
yield async_client yield async_client
@pytest_asyncio.fixture(scope="session") @pytest_asyncio.fixture(scope="function")
async def asession() -> AsyncGenerator[AsyncSession, None]: async def asession() -> AsyncGenerator[AsyncSession, None]:
async with async_session_maker() as session: async with async_session_maker() as session:
yield session yield session