From ad24a35acb7841cd4699df4f582353cd3e54a4f3 Mon Sep 17 00:00:00 2001 From: Shreya Date: Wed, 21 Jul 2021 17:50:52 +0530 Subject: [PATCH] tests: Fix function path in monkeypatch statement as per previous commit changes --- .../unit_tests/monkey_island/cc/resources/test_island_mode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/tests/unit_tests/monkey_island/cc/resources/test_island_mode.py b/monkey/tests/unit_tests/monkey_island/cc/resources/test_island_mode.py index 435680bfe..0952f2b43 100644 --- a/monkey/tests/unit_tests/monkey_island/cc/resources/test_island_mode.py +++ b/monkey/tests/unit_tests/monkey_island/cc/resources/test_island_mode.py @@ -15,7 +15,7 @@ def uses_database(): @pytest.mark.parametrize("mode", ["ransomware", "advanced"]) def test_island_mode_post(flask_client, mode, monkeypatch): 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, ) resp = flask_client.post(