mirror of
https://github.com/grillazz/fastapi-sqlalchemy-asyncpg.git
synced 2025-08-26 16:40:40 +03:00
code lint
This commit is contained in:
parent
a8458be925
commit
14145d952f
@ -6,6 +6,7 @@ from httpx import AsyncClient
|
|||||||
|
|
||||||
pytestmark = pytest.mark.anyio
|
pytestmark = pytest.mark.anyio
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
"payload, status_code",
|
"payload, status_code",
|
||||||
(
|
(
|
||||||
|
@ -51,9 +51,9 @@ async def start_db():
|
|||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
async def client() -> AsyncClient:
|
async def client() -> AsyncClient:
|
||||||
async with AsyncClient(
|
async with AsyncClient(
|
||||||
app=app,
|
app=app,
|
||||||
base_url="http://testserver/v1",
|
base_url="http://testserver/v1",
|
||||||
headers={"Content-Type": "application/json"},
|
headers={"Content-Type": "application/json"},
|
||||||
) as client:
|
) as client:
|
||||||
await start_db()
|
await start_db()
|
||||||
yield client
|
yield client
|
||||||
|
Loading…
x
Reference in New Issue
Block a user