test(chatgpt): assert invalid call identifier validation

This commit is contained in:
jibanez-staticduo 2026-09-09 10:56:04 +02:00
parent daa00a3401
commit 93285edba1
No known key found for this signature in database

View file

@ -8,7 +8,7 @@ from litellm.llms.chatgpt.codex import build_sideband_request, parse_call_respon
def test_signaling_rejects_invalid_upstream_call_id(location):
response = httpx.Response(201, headers={"Location": location},
extensions={"chatgpt_realtime": {"model": "gpt-live-1-codex"}})
with pytest.raises(ValueError):
with pytest.raises(ValueError, match="String should match pattern"):
parse_call_response(response, "voice", "owner", 1000)