File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
clusters-keeper/tests/unit Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -419,7 +419,7 @@ def service_monitored_labels(
419419@pytest .fixture
420420async def async_client (initialized_app : FastAPI ) -> AsyncIterator [httpx .AsyncClient ]:
421421 async with httpx .AsyncClient (
422- app = initialized_app ,
422+ transport = httpx . ASGITransport ( app = initialized_app ) ,
423423 base_url = f"http://{ initialized_app .title } .testserver.io" ,
424424 headers = {"Content-Type" : "application/json" },
425425 ) as client :
Original file line number Diff line number Diff line change @@ -262,7 +262,7 @@ def app_settings(initialized_app: FastAPI) -> ApplicationSettings:
262262@pytest .fixture
263263async def async_client (initialized_app : FastAPI ) -> AsyncIterator [httpx .AsyncClient ]:
264264 async with httpx .AsyncClient (
265- app = initialized_app ,
265+ transport = httpx . ASGITransport ( app = initialized_app ) ,
266266 base_url = f"http://{ initialized_app .title } .testserver.io" ,
267267 headers = {"Content-Type" : "application/json" },
268268 ) as client :
You can’t perform that action at this time.
0 commit comments