Skip to content

Commit 7208774

Browse files
committed
full upgrade clusters-keeper
1 parent ff0ad4c commit 7208774

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

services/autoscaling/tests/unit/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ def service_monitored_labels(
419419
@pytest.fixture
420420
async 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:

services/clusters-keeper/tests/unit/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ def app_settings(initialized_app: FastAPI) -> ApplicationSettings:
262262
@pytest.fixture
263263
async 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:

0 commit comments

Comments
 (0)