mirror of
https://github.com/grillazz/fastapi-sqlalchemy-asyncpg.git
synced 2025-08-26 16:40:40 +03:00
fix build
This commit is contained in:
parent
18d8967814
commit
518102860b
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user