mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-11 08:38:24 +00:00
fix(proxy): align premium get_spend_routes test with 403 gate
ruff format on the helper, and update the precedence regression that still expected the old bare 500 Internal Server Error after the Enterprise 403 change.
This commit is contained in:
parent
6b3e4a478e
commit
63274fb42b
1 changed files with 4 additions and 2 deletions
|
|
@ -21520,8 +21520,10 @@ async def test_key_generation_premium_permission_error_precedes_project_ownershi
|
|||
team_table=None,
|
||||
)
|
||||
|
||||
assert error.value.status_code == 500
|
||||
assert error.value.detail == {"error": "Internal Server Error."}
|
||||
assert error.value.status_code == 403
|
||||
detail = str(error.value.detail)
|
||||
assert "get_spend_routes" in detail
|
||||
assert "Enterprise" in detail
|
||||
mock_prisma_client.insert_data.assert_not_awaited()
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue