mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 02:34:29 +00:00
test prom unit tests
This commit is contained in:
parent
f402e9bbd1
commit
df4593d58b
1 changed files with 3 additions and 3 deletions
|
@ -713,7 +713,7 @@ async def test_async_post_call_failure_hook(prometheus_logger):
|
|||
team_alias="test_team_alias",
|
||||
user="test_user",
|
||||
exception_status="429",
|
||||
exception_class="RateLimitError",
|
||||
exception_class="Openai.RateLimitError",
|
||||
)
|
||||
prometheus_logger.litellm_proxy_failed_requests_metric.labels().inc.assert_called_once()
|
||||
|
||||
|
@ -948,7 +948,7 @@ async def test_log_success_fallback_event(prometheus_logger):
|
|||
team="test_team",
|
||||
team_alias="test_team_alias",
|
||||
exception_status="429",
|
||||
exception_class="RateLimitError",
|
||||
exception_class="Openai.RateLimitError",
|
||||
)
|
||||
prometheus_logger.litellm_deployment_successful_fallbacks.labels().inc.assert_called_once()
|
||||
|
||||
|
@ -985,7 +985,7 @@ async def test_log_failure_fallback_event(prometheus_logger):
|
|||
team="test_team",
|
||||
team_alias="test_team_alias",
|
||||
exception_status="429",
|
||||
exception_class="RateLimitError",
|
||||
exception_class="Openai.RateLimitError",
|
||||
)
|
||||
prometheus_logger.litellm_deployment_failed_fallbacks.labels().inc.assert_called_once()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue