mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-02 02:11:58 +00:00
test(proxy): isolate test_get_loop_type from env with patch.dict clear=True
This commit is contained in:
parent
87f3d1be78
commit
4959351848
1 changed files with 1 additions and 0 deletions
|
|
@ -353,6 +353,7 @@ class TestProxyInitializationHelpers:
|
|||
# Execute and Assert
|
||||
assert ProxyInitializationHelpers._is_port_in_use(8000) is False
|
||||
|
||||
@patch.dict(os.environ, {}, clear=True)
|
||||
def test_get_loop_type(self):
|
||||
with patch("sys.platform", "win32"):
|
||||
assert ProxyInitializationHelpers._get_loop_type() is None
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue