code lint

This commit is contained in:
grillazz 2021-11-27 19:14:34 +01:00
parent a8458be925
commit 14145d952f
2 changed files with 4 additions and 3 deletions

View File

@ -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",
( (

View File

@ -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