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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
test(proxy): drop the route-list membership test that the PATCH gate tests already cover
ryan-crabbe-berri36eb9cdb356e
diff --git a/tests/test_litellm/proxy/auth/test_route_checks.py b/tests/test_litellm/proxy/auth/test_route_checks.pyindex 3211e85ff97..72c7011e6f5 100644--- a/tests/test_litellm/proxy/auth/test_route_checks.py+++ b/tests/test_litellm/proxy/auth/test_route_checks.py@@ -2892,7 +2892,7 @@ def test_team_update_gate_allows_org_admin_with_resolved_org():)-def test_team_update_gate_admits_internal_user_without_org_context():+def test_team_update_gate_admits_internal_user_without_org_context(): # test-quality-ok: the gate's only success signal is not raising; the handler's team-admin 403s are pinned in test_team_endpoints"""/team/update is self-managed (LIT-5722): the coarse gate admits any authenticatedcaller and update_team resolves proxy, org or team admin itself, then filters team adminsthrough the team_admin_editable_team_fields setting. Before that the gate 401'd every@@ -2997,23 +2997,6 @@ async def test_add_team_org_context_noop_for_static_team_route():assert out == body-def test_patch_team_route_has_same_reach_as_team_update():- """/team/{team_id} is reachable by org admins (in org_admin_allowed_routes) but- NOT by regular internal users or the role-agnostic self_managed_routes — the- latter would open /team/new (the collision footgun) to any authenticated user."""- from litellm.proxy._types import LiteLLMRoutes-- assert RouteChecks.check_route_access(- route="/team/abc-123", allowed_routes=LiteLLMRoutes.org_admin_allowed_routes.value- )- assert not RouteChecks.check_route_access(- route="/team/abc-123", allowed_routes=LiteLLMRoutes.internal_user_routes.value- )- assert not RouteChecks.check_route_access(- route="/team/abc-123", allowed_routes=LiteLLMRoutes.self_managed_routes.value- )--def _patch_team_request() -> MagicMock:request = MagicMock(spec=Request)request.method = "PATCH"