develop
Сергей Ванюшкин 2024-01-27 14:43:46 +03:00
parent b20ff8bceb
commit b474e21f0f
1 changed files with 8 additions and 0 deletions

View File

@ -50,3 +50,11 @@ def app():
app = create_app()
app.dependency_overrides[get_async_session] = get_test_session
yield app
@pytest_asyncio.fixture(scope="session")
async def client(app):
async with AsyncClient(
app=app, base_url="http://localhost:8000/api/v1/menus",
) as async_client:
yield async_client