test(vertex-ai): match current speech HTTP error response

This commit is contained in:
Emerson Gomes 2026-09-22 17:57:17 -05:00
parent dde62d74ba
commit 271f19822e
No known key found for this signature in database
GPG key ID: D3DF28AB5D1B5E17

View file

@ -300,7 +300,7 @@ def test_audio_speech_http_error_preserves_detail(client, auth_as, patched_speec
with auth_as():
response = client.post(path, json=payload)
assert response.status_code == 422
assert response.json()["error"]["message"] == "Provider rejected the speech request."
assert response.json()["detail"] == "Provider rejected the speech request."
@pytest.mark.parametrize("path", ["/v1/audio/transcriptions", "/audio/transcriptions"])