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.
This commit is contained in:
Stephen Chin 2026-08-06 19:30:49 +00:00 • committed by Stephen Chin
parent 8d9f30b63e
commit d7b2e0ca19

View file

@ -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