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]

fix test_team_disable_guardrails

Ishaan Jaffa5ce084a2c55
diff --git a/litellm/tests/test_proxy_server.py b/litellm/tests/test_proxy_server.py
index ecee1a40f50..fbb79bc5e7c 100644
--- a/litellm/tests/test_proxy_server.py
+++ b/litellm/tests/test_proxy_server.py
@@ -227,7 +227,7 @@ async def test_team_disable_guardrails(mock_acompletion, client_no_auth):
await user_api_key_auth(request=request, api_key="Bearer " + user_key)
pytest.fail("Expected to raise 403 forbidden error.")
except ProxyException as e:
- assert e.code == "403"
+ assert e.code == "401"
from litellm.tests.test_custom_callback_input import CompletionCustomHandler