mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-26 06:03:19 +00:00
test: assert outside the raises block for the temp-budget owner guard (ruff PT012)
Generated-by: termag
This commit is contained in:
parent
a76323cb7c
commit
fc1d63ab2a
1 changed files with 3 additions and 2 deletions
|
|
@ -23233,8 +23233,9 @@ class TestKeyUpdateBudgetAuthorityGates:
|
|||
prisma_client=AsyncMock(),
|
||||
user_api_key_cache=MagicMock(),
|
||||
)
|
||||
assert int(getattr(exc.value, "status_code", 0)) == 403
|
||||
assert "budget authority fields" in str(exc.value.detail)
|
||||
|
||||
assert int(getattr(exc.value, "status_code", 0)) == 403
|
||||
assert "budget authority fields" in str(exc.value.detail)
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue