chore(test): keep the backported Vertex safeguards test within the line's test-quality budget

Adds a test-quality-ok marker on the one patch.object the picked Vertex test needs, since the GCP token exchange runs before the faked HTTP boundary. Test-only, no runtime change.
This commit is contained in:
mateo-berri 2026-09-28 21:15:27 -07:00
parent 594f0d1eaa
commit 4982a1e111

View file

@ -1627,7 +1627,9 @@ async def test_anthropic_messages_forwards_safeguards_and_dangerous_tool_use_bet
safeguards, safeguard_results = _claude_code_auto_mode_request()
captured: dict[str, object] = {}
with patch.object(VertexBase, "_ensure_access_token", return_value=("test-token", "test-project")):
with patch.object( # test-quality-ok: the GCP token exchange runs before the faked HTTP boundary
VertexBase, "_ensure_access_token", return_value=("test-token", "test-project")
):
response = await handler.anthropic_messages(
max_tokens=16,
messages=[{"role": "user", "content": "hi"}],