From 278b27f43a8a5d7193dd08af15eaa2ebc5cd0625 Mon Sep 17 00:00:00 2001 From: Bastian Germann Date: Fri, 8 May 2026 12:39:48 +0200 Subject: Fix deprecated httpx ASGI transport usage Replace httpx.AsyncClient(app=...) with httpx.AsyncClient(transport=httpx.ASGITransport(app=...)); the app= shorthand was removed in httpx 0.28. --- tests/test_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_manager.py b/tests/test_manager.py index d7700c9..01383ea 100644 --- a/tests/test_manager.py +++ b/tests/test_manager.py @@ -234,7 +234,7 @@ async def test_lifespan_state_async_cm() -> None: async with LifespanManager(app) as manager: async with httpx.AsyncClient( - app=manager.app, base_url="http://example.org" + transport=httpx.ASGITransport(app=manager.app), base_url="http://example.org" ) as client: response = await client.get("/get") assert response.status_code == 200