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
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"payload, status_code",
|
||||
(
|
||||
|
@ -51,9 +51,9 @@ async def start_db():
|
||||
@pytest.fixture
|
||||
async def client() -> AsyncClient:
|
||||
async with AsyncClient(
|
||||
app=app,
|
||||
base_url="http://testserver/v1",
|
||||
headers={"Content-Type": "application/json"},
|
||||
app=app,
|
||||
base_url="http://testserver/v1",
|
||||
headers={"Content-Type": "application/json"},
|
||||
) as client:
|
||||
await start_db()
|
||||
yield client
|
||||
|
Loading…
x
Reference in New Issue
Block a user