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
test(test_router_debug_logs.py): simplify test
Krrish Dholakiad2239e3c5274
diff --git a/litellm/tests/test_router_debug_logs.py b/litellm/tests/test_router_debug_logs.pyindex 20eccf5dea2..49bd01d882c 100644--- a/litellm/tests/test_router_debug_logs.py+++ b/litellm/tests/test_router_debug_logs.py@@ -88,11 +88,10 @@ def test_async_fallbacks(caplog):# Define the expected log messages# - error request, falling back notice, success noticeexpected_logs = [- "litellm.acompletion(model=gpt-3.5-turbo)\x1b[31m Exception litellm.AuthenticationError: AuthenticationError: OpenAIException - Incorrect API key provided: bad-key. You can find your API key at https://platform.openai.com/account/api-keys.\x1b[0m","Falling back to model_group = azure/gpt-3.5-turbo","litellm.acompletion(model=azure/chatgpt-v-2)\x1b[32m 200 OK\x1b[0m","Successful fallback b/w models.",]# Assert that the captured logs match the expected log messages- assert captured_logs == expected_logs+ assert captured_logs[-3:] == expected_logs