fix build

This commit is contained in:
kuba 2022-02-17 19:48:49 +01:00
parent 18d8967814
commit 518102860b

View File

@ -1,4 +1,5 @@
import pytest import pytest
import pytest_asyncio
from httpx import AsyncClient from httpx import AsyncClient
from the_app.main import app from the_app.main import app
from the_app.models.base import Base from the_app.models.base import Base
@ -23,7 +24,7 @@ async def start_db():
await engine.dispose() await engine.dispose()
@pytest.fixture @pytest_asyncio.fixture
async def client() -> AsyncClient: async def client() -> AsyncClient:
async with AsyncClient( async with AsyncClient(
app=app, app=app,