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 83cc07455b
commit 911f959571

View file

@ -1,8 +1,9 @@
import json
import os
import sys
from unittest.mock import Mock
from unittest.mock import MagicMock, Mock, patch
import httpx
import pytest
sys.path.insert(