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 patch reliability mock tests
Ishaan Jafferf148207b111a
diff --git a/tests/test_litellm/secret_managers/test_secret_managers_main.py b/tests/test_litellm/secret_managers/test_secret_managers_main.pyindex 3b9c6f2713e..2e5270b5d70 100644--- a/tests/test_litellm/secret_managers/test_secret_managers_main.py+++ b/tests/test_litellm/secret_managers/test_secret_managers_main.py@@ -67,7 +67,7 @@ def test_oidc_google_cached(mock_oidc_cache):mock_oidc_cache.get_cache.return_value = "cached_token"secret_name = "oidc/google/[invalid url, do not cite]"- with patch("litellm.HTTPHandler") as mock_http:+ with patch("litellm.secret_managers.main.HTTPHandler") as mock_http:result = get_secret(secret_name)assert result == "cached_token", f"Expected cached token, got {result}"@@ -75,6 +75,7 @@ def test_oidc_google_cached(mock_oidc_cache):mock_http.assert_not_called()+@patch("litellm.secret_managers.main.oidc_cache")def test_oidc_google_failure(mock_oidc_cache):mock_handler = MockHTTPHandler(timeout=600.0)mock_handler.status_code = 400