mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-25 01:02:15 +00:00
test(integration): reject out-of-range failure statuses at import
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
e42f3f1562
commit
dccb1b56b4
1 changed files with 5 additions and 1 deletions
|
|
@ -296,7 +296,11 @@ def data_errors() -> tuple[str, ...]:
|
|||
for case in CASES
|
||||
if (
|
||||
isinstance(case.expected, FailureExpected)
|
||||
and (not isinstance(case.response, JsonResponse) or case.response.status < 400)
|
||||
and (
|
||||
not isinstance(case.response, JsonResponse)
|
||||
or not 400 <= case.response.status <= 599
|
||||
or not 400 <= case.expected.failure.status <= 599
|
||||
)
|
||||
)
|
||||
or (
|
||||
not isinstance(case.expected, FailureExpected)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue