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(proxy): assert the rpm/tpm guard returns None on the passing paths
ryan-crabbe-berri968c96143f2e
diff --git a/tests/test_litellm/proxy/management_endpoints/test_model_management_endpoints.py b/tests/test_litellm/proxy/management_endpoints/test_model_management_endpoints.pyindex 79dfcbc75b2..dd7b36dd909 100644--- a/tests/test_litellm/proxy/management_endpoints/test_model_management_endpoints.py+++ b/tests/test_litellm/proxy/management_endpoints/test_model_management_endpoints.py@@ -4261,15 +4261,21 @@ class TestAutoRouterClassifierDefaultPrompt:class TestEnforceRpmTpmOnModelAdd:def test_passes_when_disabled_even_without_limits(self):- _raise_if_rate_limits_required_but_missing(- litellm_params=LiteLLM_Params(model="azure/gpt-5.2"),- enforced=False,+ assert (+ _raise_if_rate_limits_required_but_missing(+ litellm_params=LiteLLM_Params(model="azure/gpt-5.2"),+ enforced=False,+ )+ is None)def test_passes_when_enabled_and_both_set(self):- _raise_if_rate_limits_required_but_missing(- litellm_params=LiteLLM_Params(model="azure/gpt-5.2", rpm=10, tpm=1000),- enforced=True,+ assert (+ _raise_if_rate_limits_required_but_missing(+ litellm_params=LiteLLM_Params(model="azure/gpt-5.2", rpm=10, tpm=1000),+ enforced=True,+ )+ is None)@pytest.mark.parametrize(