fix lint error

This commit is contained in:
grillazz
2025-03-08 18:34:41 +01:00
parent 5ede530a4d
commit b594dee278
3 changed files with 6 additions and 11 deletions

View File

@@ -1,3 +1,6 @@
from collections.abc import AsyncGenerator
from typing import Any
import pytest
from httpx import ASGITransport, AsyncClient
@@ -28,12 +31,11 @@ async def start_db():
@pytest.fixture(scope="session")
async def client(start_db) -> AsyncClient:
async def client(start_db) -> AsyncGenerator[AsyncClient, Any]: # noqa: ARG001
transport = ASGITransport(
app=app,
)
async with AsyncClient(
# app=app,
base_url="http://testserver/v1",
headers={"Content-Type": "application/json"},
transport=transport,