Test specific handling of RateLimitError
()
| 43 | |
| 44 | |
| 45 | def test_rate_limit_error(): |
| 46 | """Test specific handling of RateLimitError""" |
| 47 | ex = LiteLLMExceptions() |
| 48 | from litellm import RateLimitError |
| 49 | |
| 50 | rate_error = RateLimitError(message="Rate limit exceeded", llm_provider="openai", model="gpt-4") |
| 51 | ex_info = ex.get_ex_info(rate_error) |
| 52 | assert ex_info.retry is True |
| 53 | assert "rate limited" in ex_info.description.lower() |
| 54 | |
| 55 | |
| 56 | def test_context_window_error(): |
nothing calls this directly
no test coverage detected