mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-23 05:34:41 +00:00
test(router): use real Logging in fallback cooldown test
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
ae550e90b6
commit
aa5918c0cb
1 changed files with 3 additions and 3 deletions
|
|
@ -1224,9 +1224,9 @@ class TestRunAsyncFallbackTriggersCooldown:
|
|||
async def async_function_with_fallbacks(self, *args, **kwargs):
|
||||
raise RuntimeError("fallback model also failed")
|
||||
|
||||
def _logging_obj(self, has_logged_async_failure: bool) -> MagicMock:
|
||||
logging_obj = MagicMock()
|
||||
logging_obj.model_call_details = {"has_logged_async_failure": has_logged_async_failure}
|
||||
def _logging_obj(self, has_logged_async_failure: bool) -> Logging:
|
||||
logging_obj: Final = _request_logging_obj()
|
||||
logging_obj.model_call_details["has_logged_async_failure"] = has_logged_async_failure
|
||||
return logging_obj
|
||||
|
||||
@pytest.mark.asyncio
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue