Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

test: cover proxy_admin_viewer sessions in the model_group/info admin regression test

mateo-berriea5887d4bb5e
diff --git a/tests/test_litellm/proxy/proxy_server/test_routes_model_info.py b/tests/test_litellm/proxy/proxy_server/test_routes_model_info.py
index a076b3593b1..2c101156c6c 100644
--- a/tests/test_litellm/proxy/proxy_server/test_routes_model_info.py
+++ b/tests/test_litellm/proxy/proxy_server/test_routes_model_info.py
@@ -340,10 +340,13 @@ def model_group_info_router(monkeypatch):
return router
-def test_model_group_info_proxy_admin_ignores_key_model_restriction(client, auth_as, model_group_info_router):
[email protected]("admin_role", ["proxy_admin", "proxy_admin_viewer"])
+def test_model_group_info_proxy_admin_ignores_key_model_restriction(
+ client, auth_as, model_group_info_router, admin_role
+):
from litellm.proxy._types import LitellmUserRoles
- with auth_as(LitellmUserRoles.PROXY_ADMIN, models=["no-default-models"]):
+ with auth_as(LitellmUserRoles(admin_role), models=["no-default-models"]):
response = client.get("/model_group/info")
assert response.status_code == 200