diff --git a/tests/test_async_client.py b/tests/test_async_client.py index 2f4c222..cdb01d1 100644 --- a/tests/test_async_client.py +++ b/tests/test_async_client.py @@ -5,17 +5,17 @@ @pytest.mark.asyncio -async def test_list_models_and_explicit_close(monkeypatch): - # Authentication discovery is synchronous; isolate it from the async server. - monkeypatch.setattr( - AsyncRESTfulClient, "_check_cluster_authenticated", lambda self: None - ) +async def test_list_models_and_explicit_close(): model = {"id": "test-model", "model_type": "LLM"} async def list_models(request): return web.json_response({"data": [model]}) + async def cluster_auth(request): + return web.json_response({"auth": False}) + app = web.Application() + app.router.add_get("/v1/cluster/auth", cluster_auth) app.router.add_get("/v1/models", list_models) runner = web.AppRunner(app) await runner.setup() diff --git a/third_party/inference b/third_party/inference index a362581..551c693 160000 --- a/third_party/inference +++ b/third_party/inference @@ -1 +1 @@ -Subproject commit a3625815f8daa70a1beb428734147ca973cf916c +Subproject commit 551c693f9bcce313abb2bb37354ea5c7847ec784