docker tests finished ok
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user