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_pre_call_hook_team_rpm_limits

Ishaan Jaff7ac187b269ad
diff --git a/tests/local_testing/test_parallel_request_limiter.py b/tests/test_litellm/proxy/hooks/test_parallel_request_limiter.py
similarity index 99%
rename from tests/local_testing/test_parallel_request_limiter.py
rename to tests/test_litellm/proxy/hooks/test_parallel_request_limiter.py
index 8b34e034544..72aca19a70a 100644
--- a/tests/local_testing/test_parallel_request_limiter.py
+++ b/tests/test_litellm/proxy/hooks/test_parallel_request_limiter.py
@@ -212,6 +212,7 @@ async def test_pre_call_hook_rpm_limits_retry_after():
@pytest.mark.asyncio
[email protected](retries=3, delay=2)
async def test_pre_call_hook_team_rpm_limits():
"""
Test if error raised on hitting team rpm limits
@@ -1224,8 +1225,8 @@ async def test_post_call_success_hook_rpm_limits_per_model():
Test if openai-compatible x-ratelimit-* headers are added to the response
"""
import logging
- from litellm import ModelResponse
+ from litellm import ModelResponse
from litellm._logging import (
verbose_logger,
verbose_proxy_logger,