Skip to content
This repository was archived by the owner on Apr 26, 2025. It is now read-only.

Commit db5900d

Browse files
committed
Fix HTTPX depreciation warning
1 parent 4f6ced5 commit db5900d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_integrations_fastapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ async def get_current_user_permission(
145145
@pytest_asyncio.fixture
146146
async def test_client(fastapi_app: FastAPI) -> AsyncGenerator[httpx.AsyncClient, None]:
147147
async with httpx.AsyncClient(
148-
app=fastapi_app, base_url="http://api.bretagne.duchy"
148+
transport=httpx.ASGITransport(fastapi_app), base_url="http://api.bretagne.duchy"
149149
) as test_client:
150150
yield test_client
151151

0 commit comments

Comments
 (0)