diff --git a/monkey/tests/unit_tests/monkey_island/cc/services/conftest.py b/monkey/tests/unit_tests/monkey_island/cc/services/conftest.py index 213dbaefc..aaf3c0abe 100644 --- a/monkey/tests/unit_tests/monkey_island/cc/services/conftest.py +++ b/monkey/tests/unit_tests/monkey_island/cc/services/conftest.py @@ -14,8 +14,7 @@ def PORT(): @pytest.fixture -def config(monkeypatch, IPS, PORT): - monkeypatch.setattr("monkey_island.cc.services.config.local_ip_addresses", lambda: IPS) +def config(monkeypatch): config = ConfigService.get_default_config(True) return config diff --git a/monkey/tests/unit_tests/monkey_island/cc/services/test_config.py b/monkey/tests/unit_tests/monkey_island/cc/services/test_config.py index 404bb0dde..9e01b8365 100644 --- a/monkey/tests/unit_tests/monkey_island/cc/services/test_config.py +++ b/monkey/tests/unit_tests/monkey_island/cc/services/test_config.py @@ -6,11 +6,6 @@ from monkey_island.cc.services.config import ConfigService # monkey/monkey_island/cc/ui/src/components/pages/RunMonkeyPage/RunOptions.js -@pytest.fixture(scope="function", autouse=True) -def mock_port(monkeypatch, PORT): - monkeypatch.setattr("monkey_island.cc.services.config.ISLAND_PORT", PORT) - - @pytest.fixture(autouse=True) def mock_flat_config(monkeypatch, flat_monkey_config): monkeypatch.setattr(