test: assert outside the raises block for the temp-budget owner guard (ruff PT012)

Generated-by: termag
This commit is contained in:
Jack Danger 2026-10-18 09:44:56 +00:00
parent a76323cb7c
commit fc1d63ab2a

View file

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