From 52b9cf1e0e4206a9fab972cddf3458b9cb66e815 Mon Sep 17 00:00:00 2001 From: Teknium <127238744+teknium1@users.noreply.github.com> Date: Tue, 28 Jul 2026 12:36:53 -0700 Subject: [PATCH] test: de-pin aux default literals in provider-parity tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sibling of the test_auxiliary_client.py cleanup — these two assertions pinned the OpenRouter/Nous aux default as a frozen literal and broke on the 3.6-flash bump (CI slice 5). Reference _OPENROUTER_MODEL/_NOUS_MODEL instead so the next default rotation can't break them. --- tests/run_agent/test_provider_parity.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/run_agent/test_provider_parity.py b/tests/run_agent/test_provider_parity.py index 56dbd153ef08..c9a4e1079298 100644 --- a/tests/run_agent/test_provider_parity.py +++ b/tests/run_agent/test_provider_parity.py @@ -1022,15 +1022,15 @@ class TestAuxiliaryClientProviderPriority: def test_openrouter_always_wins(self, monkeypatch): monkeypatch.setenv("OPENROUTER_API_KEY", "or-key") - from agent.auxiliary_client import get_text_auxiliary_client + from agent.auxiliary_client import _OPENROUTER_MODEL, get_text_auxiliary_client with patch("agent.auxiliary_client.OpenAI") as mock: client, model = get_text_auxiliary_client() - assert model == "google/gemini-3-flash-preview" + assert model == _OPENROUTER_MODEL assert "openrouter" in str(mock.call_args.kwargs["base_url"]).lower() def test_nous_when_no_openrouter(self, monkeypatch): monkeypatch.delenv("OPENROUTER_API_KEY", raising=False) - from agent.auxiliary_client import get_text_auxiliary_client + from agent.auxiliary_client import _NOUS_MODEL, get_text_auxiliary_client nous_auth = { "access_token": _fake_invoke_jwt(), "scope": "inference:invoke", @@ -1039,7 +1039,7 @@ class TestAuxiliaryClientProviderPriority: patch("agent.auxiliary_client.OpenAI") as mock, \ patch("hermes_cli.models.get_nous_recommended_aux_model", return_value=None): client, model = get_text_auxiliary_client() - assert model == "google/gemini-3-flash-preview" + assert model == _NOUS_MODEL def test_custom_endpoint_when_no_nous(self, monkeypatch): """Custom endpoint is used when no OpenRouter/Nous keys are available.