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
fix: set mock status_code in JWT OIDC discovery tests (#22361)
Jaeyeon Kim(김재연)6bcba46dda1f
diff --git a/tests/test_litellm/proxy/auth/test_handle_jwt.py b/tests/test_litellm/proxy/auth/test_handle_jwt.pyindex 8418dde5e9c..3c190974277 100644--- a/tests/test_litellm/proxy/auth/test_handle_jwt.py+++ b/tests/test_litellm/proxy/auth/test_handle_jwt.py@@ -1559,6 +1559,7 @@ async def test_resolve_jwks_url_caches_resolved_jwks_uri():jwks_url = "https://login.microsoftonline.com/tenant/discovery/keys"mock_response = MagicMock()+ mock_response.status_code = 200mock_response.json.return_value = {"jwks_uri": jwks_url}with patch.object(handler.http_handler, "get", new_callable=AsyncMock, return_value=mock_response) as mock_get:@@ -1587,6 +1588,7 @@ async def test_resolve_jwks_url_raises_if_no_jwks_uri_in_discovery_doc():discovery_url = "https://example.com/.well-known/openid-configuration"mock_response = MagicMock()+ mock_response.status_code = 200mock_response.json.return_value = {"issuer": "https://example.com"} # no jwks_uriwith patch.object(handler.http_handler, "get", new_callable=AsyncMock, return_value=mock_response):