Skip to content

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]

test(router): drop duplicate get_configured_mode test failing ruff F811

mateo-berriea12510f1a57
diff --git a/tests/test_litellm/test_router.py b/tests/test_litellm/test_router.py
index e4236afc586..417c58b95f6 100644
--- a/tests/test_litellm/test_router.py
+++ b/tests/test_litellm/test_router.py
@@ -12701,33 +12701,3 @@ async def test_prompt_management_factory_marks_injection_for_every_deployment(mo
bucket = captured.get("litellm_metadata") or captured["metadata"]
assert captured["model_info"]["id"] == "provisional-dep"
assert bucket["litellm_gateway_injected_cache"] == ""
-
-
-def test_get_configured_mode_reads_deployment_model_info():
- router = Router(
- model_list=[
- {
- "model_name": "my-tts",
- "litellm_params": {"model": "openai/some-unmapped-mode-model"},
- "model_info": {"mode": "audio_speech"},
- }
- ]
- )
-
- assert router.get_configured_mode("my-tts") == "audio_speech"
-
-
[email protected]("model_info", [{}, {"mode": ""}, {"mode": " "}, {"mode": 123}])
-def test_get_configured_mode_returns_none_for_unset_blank_or_unknown(model_info):
- router = Router(
- model_list=[
- {
- "model_name": "plain-model",
- "litellm_params": {"model": "openai/some-unmapped-mode-model"},
- "model_info": model_info,
- }
- ]
- )
-
- assert router.get_configured_mode("plain-model") is None
- assert router.get_configured_mode("unknown-model") is None