From 683e66334f0064f9b60309cbd5e691fb70b366b3 Mon Sep 17 00:00:00 2001 From: Sean Murphy Date: Sat, 12 Sep 2026 22:32:35 -0700 Subject: [PATCH] test(opencode): assert the generated session id is a v4 uuid --- tests/test_litellm/llms/opencode/test_opencode_chat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_litellm/llms/opencode/test_opencode_chat.py b/tests/test_litellm/llms/opencode/test_opencode_chat.py index b598172f813..5e925a0cf6f 100644 --- a/tests/test_litellm/llms/opencode/test_opencode_chat.py +++ b/tests/test_litellm/llms/opencode/test_opencode_chat.py @@ -360,7 +360,7 @@ class TestMockedCompletion: api_key="sk-fake", ) - uuid.UUID(respx_mock.calls[0].request.headers["x-opencode-session"]) + assert uuid.UUID(respx_mock.calls[0].request.headers["x-opencode-session"]).version == 4 def test_zen_chat_sends_no_session_header(self, respx_mock, monkeypatch): """Only the Go surface requires the header."""