From d7b2e0ca199a28cfa35d832dc55362d799801f80 Mon Sep 17 00:00:00 2001 From: Stephen Chin Date: Thu, 6 Aug 2026 19:30:49 +0000 Subject: [PATCH] test(responses): restore patch import lost in cleanup I found test_acompletion_bridge_normalizes_stream_options_on_the_wire failing with NameError: name 'patch' is not defined. An earlier unused-imports cleanup on this branch dropped patch from the unittest.mock import line even though two tests still call patch.object(...). I added patch back, plus MagicMock and the httpx import that the same tests need, and left ANY out since nothing in the file uses it anymore. All 71 tests in this file pass again. --- ...ion_extras_litellm_responses_transformation_transformation.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/unit/completion_extras/litellm_responses_transformation/test_completion_extras_litellm_responses_transformation_transformation.py b/tests/unit/completion_extras/litellm_responses_transformation/test_completion_extras_litellm_responses_transformation_transformation.py index 682eab957be..ed6bc06183a 100644 --- a/tests/unit/completion_extras/litellm_responses_transformation/test_completion_extras_litellm_responses_transformation_transformation.py +++ b/tests/unit/completion_extras/litellm_responses_transformation/test_completion_extras_litellm_responses_transformation_transformation.py @@ -4,6 +4,7 @@ import unittest from typing import TYPE_CHECKING, Final, List, Literal, Optional, Tuple, get_args from unittest.mock import ANY, MagicMock, Mock, patch +import httpx import pytest import litellm