forked from p15670423/monkey
UT: Fix island config tests
This commit is contained in:
parent
8af665c0a8
commit
7b415be883
|
@ -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
|
||||
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue