From 0a8341fd017df107ea6c1a52a868b86f0557b36b Mon Sep 17 00:00:00 2001 From: Lucas Song Date: Fri, 17 Apr 2026 21:43:52 -0700 Subject: [PATCH] test(proxy): fix concrete-models dedupe assertion _concrete_models_allowed_by_resolved only emits router names allowed by resolved (exact or wildcard); b is not included when resolved is [a]. Made-with: Cursor --- tests/test_litellm/proxy/auth/test_model_checks_key_display.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_litellm/proxy/auth/test_model_checks_key_display.py b/tests/test_litellm/proxy/auth/test_model_checks_key_display.py index 85339989828..ca9ff3843bc 100644 --- a/tests/test_litellm/proxy/auth/test_model_checks_key_display.py +++ b/tests/test_litellm/proxy/auth/test_model_checks_key_display.py @@ -162,7 +162,8 @@ async def test_resolve_all_proxy_models_from_resolved_after_team_not_in_key_mode def test_concrete_models_allowed_skips_duplicate_router_names(): - assert _concrete_models_allowed_by_resolved(["a"], ["a", "a", "b"]) == ["a", "b"] + """Router may list the same deployment twice; output is deduped. Only resolved names count.""" + assert _concrete_models_allowed_by_resolved(["a", "b"], ["a", "a", "b"]) == ["a", "b"] def test_concrete_models_wildcard_in_resolved_list():