The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(providers): guard the removed-provider migration hint
kshitijk4poorff8c91185a65
diff --git a/tests/hermes_cli/test_runtime_provider_resolution.py b/tests/hermes_cli/test_runtime_provider_resolution.pyindex e3ff5a5972b..b255192065d 100644--- a/tests/hermes_cli/test_runtime_provider_resolution.py+++ b/tests/hermes_cli/test_runtime_provider_resolution.py@@ -1910,3 +1910,18 @@ def test_custom_provider_pool_target_model_wins(monkeypatch):assert resolved is not Noneassert resolved["model"] == "myproxy/gemini-flash"++[email protected]("name", ["opencode-free", "free", "opencode_free"])+def test_removed_keyless_free_provider_points_at_its_replacements(name):+ """The keyless OpenCode free tier is gone (the relay 403s anonymous traffic), so a persisted+ ``model.provider`` — or ``--provider`` — still naming it must fail with the removal hint+ naming both surviving OpenCode providers, not a bare "Unknown provider"."""+ from hermes_cli.auth import AuthError, resolve_provider++ with pytest.raises(AuthError) as excinfo:+ resolve_provider(name)++ assert excinfo.value.code == "invalid_provider"+ message = str(excinfo.value)+ assert "opencode-zen" in message and "opencode-go" in message