From 34495d36d4d9c7003bc978e4e249ac4589f82936 Mon Sep 17 00:00:00 2001 From: Shreya Date: Wed, 21 Jul 2021 18:05:07 +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 0952f2b43..37b09aaed 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.island_mode_service.update_config_on_mode_set", + "monkey_island.cc.resources.island_mode.update_config_on_mode_set", lambda _: None, ) resp = flask_client.post(