tests: Fix function path in monkeypatch statement as per previous commit changes

This commit is contained in:
Shreya 2021-07-21 17:50:52 +05:30
parent af7651c53b
commit ad24a35acb
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ def uses_database():
@pytest.mark.parametrize("mode", ["ransomware", "advanced"]) @pytest.mark.parametrize("mode", ["ransomware", "advanced"])
def test_island_mode_post(flask_client, mode, monkeypatch): def test_island_mode_post(flask_client, mode, monkeypatch):
monkeypatch.setattr( monkeypatch.setattr(
"monkey_island.cc.services.mode.set_island_mode_service.update_config_on_mode_set", "monkey_island.cc.services.mode.island_mode_service.update_config_on_mode_set",
lambda _: None, lambda _: None,
) )
resp = flask_client.post( resp = flask_client.post(