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
Update tests/test_litellm/proxy/auth/test_user_api_key_auth.py
jquinter0d1172058631
diff --git a/tests/test_litellm/proxy/auth/test_user_api_key_auth.py b/tests/test_litellm/proxy/auth/test_user_api_key_auth.pyindex cf5257a959a..68abf2a1c93 100644--- a/tests/test_litellm/proxy/auth/test_user_api_key_auth.py+++ b/tests/test_litellm/proxy/auth/test_user_api_key_auth.py@@ -320,10 +320,10 @@ async def test_proxy_admin_expired_key_from_cache():attr: getattr(_proxy_server_mod, attr, None)for attr in _attrs_to_set}- for attr, val in _attrs_to_set.items():- setattr(_proxy_server_mod, attr, val)-try:+ for attr, val in _attrs_to_set.items():+ setattr(_proxy_server_mod, attr, val)+# Create a mock requestrequest = Request(scope={"type": "http"})