diff --git a/tests/test_integrations_fastapi.py b/tests/test_integrations_fastapi.py index 1cf6764..3c65abd 100644 --- a/tests/test_integrations_fastapi.py +++ b/tests/test_integrations_fastapi.py @@ -145,7 +145,7 @@ async def get_current_user_permission( @pytest_asyncio.fixture async def test_client(fastapi_app: FastAPI) -> AsyncGenerator[httpx.AsyncClient, None]: async with httpx.AsyncClient( - app=fastapi_app, base_url="http://api.bretagne.duchy" + transport=httpx.ASGITransport(fastapi_app), base_url="http://api.bretagne.duchy" ) as test_client: yield test_client