mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 03:04:13 +00:00
test(test_router.py): add test to ensure error is correctly re-raised
This commit is contained in:
parent
6415f92bbb
commit
ea2077be22
2 changed files with 41 additions and 13 deletions
|
@ -503,7 +503,6 @@ def mock_completion(
|
|||
):
|
||||
raise litellm.RateLimitError(
|
||||
message="this is a mock rate limit error",
|
||||
status_code=getattr(mock_response, "status_code", 429), # type: ignore
|
||||
llm_provider=getattr(mock_response, "llm_provider", custom_llm_provider or "openai"), # type: ignore
|
||||
model=model,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue