UT: Fix island config tests

This commit is contained in:
Ilija Lazoroski 2022-06-13 16:46:39 +02:00 committed by vakarisz
parent 8af665c0a8
commit 7b415be883
2 changed files with 1 additions and 7 deletions

View File

@ -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

View File

@ -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(