From 93285edba19531afb2e12d1c7f4947af44f951bf Mon Sep 17 00:00:00 2001 From: jibanez-staticduo Date: Wed, 9 Sep 2026 10:56:04 +0200 Subject: [PATCH] test(chatgpt): assert invalid call identifier validation --- tests/test_litellm/llms/chatgpt/test_codex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_litellm/llms/chatgpt/test_codex.py b/tests/test_litellm/llms/chatgpt/test_codex.py index 078c8d85ce3..a893ddbfb12 100644 --- a/tests/test_litellm/llms/chatgpt/test_codex.py +++ b/tests/test_litellm/llms/chatgpt/test_codex.py @@ -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)