mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-14 23:21:35 +00:00
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
This commit is contained in:
parent
0c74abab99
commit
0a8341fd01
1 changed files with 2 additions and 1 deletions
|
|
@ -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():
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue