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 router retries tests
Ishaan Jaffcae9245b3343
diff --git a/litellm/tests/test_router_retries.py b/litellm/tests/test_router_retries.pyindex 4d9abb2d953..f0503cd3f18 100644--- a/litellm/tests/test_router_retries.py+++ b/litellm/tests/test_router_retries.py@@ -392,7 +392,7 @@ def test_retry_rate_limit_error_with_healthy_deployments():def test_do_retry_rate_limit_error_with_no_fallbacks_and_no_healthy_deployments():"""- Test 2. It SHOULD Retry, when healthy_deployments is [] and fallbacks is None+ Test 2. It SHOULD NOT Retry, when healthy_deployments is [] and fallbacks is None"""healthy_deployments = []@@ -415,9 +415,10 @@ def test_do_retry_rate_limit_error_with_no_fallbacks_and_no_healthy_deployments(response = router.should_retry_this_error(error=rate_limit_error, healthy_deployments=healthy_deployments)- assert response == True+ pytest.fail("Should have raised an error")except Exception as e:- pytest.fail("Should not have failed this error - {}".format(str(e)))+ print("got an exception", e)+ passdef test_raise_context_window_exceeded_error():