UT: Fix control client location

This commit is contained in:
Ilija Lazoroski 2022-06-13 17:51:41 +02:00 committed by vakarisz
parent 3c8530cf14
commit 7fe6c170cd
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ from monkey.infection_monkey.control import ControlClient
[(True, "http://8.8.8.8:45455"), (False, "8.8.8.8:45455")],
)
def test_control_set_proxies(monkeypatch, is_windows_os, expected_proxy_string):
monkeypatch.setattr("infection_monkey.cc.control.is_windows_os", lambda: is_windows_os)
monkeypatch.setattr("monkey.infection_monkey.control.is_windows_os", lambda: is_windows_os)
control_client = ControlClient("8.8.8.8:5000")
control_client.set_proxies(("8.8.8.8", "45455"))