mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
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:
parent
83cc07455b
commit
911f959571
1 changed files with 2 additions and 1 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue