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:
er-s-an 2026-10-18 09:18:06 +08:00
parent 6b3e4a478e
commit 63274fb42b

View file

@ -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()