mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-16 09:22:22 +00:00
test(router): cover team strategy marker lookup
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
1f223c25a9
commit
f17597fbb3
1 changed files with 7 additions and 0 deletions
|
|
@ -8522,6 +8522,13 @@ class TestPreRoutingStrategyRegistryLifecycle:
|
|||
async def test_team_scoped_public_name_routes_to_the_team_strategy(self):
|
||||
router = self._team_scoped_router()
|
||||
|
||||
assert (
|
||||
router._team_strategy_marker_model_name(
|
||||
model="smart-router",
|
||||
request_kwargs={"metadata": {"user_api_key_team_id": "team-a"}},
|
||||
)
|
||||
== "model_name_team-a_1"
|
||||
)
|
||||
response = await router.async_pre_routing_hook(
|
||||
model="smart-router",
|
||||
request_kwargs={"metadata": {"user_api_key_team_id": "team-a"}},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue