diff --git a/insights/tests/client/apps/test_malware_detection.py b/insights/tests/client/apps/test_malware_detection.py index 6731fd97e7..d52b74d93f 100644 --- a/insights/tests/client/apps/test_malware_detection.py +++ b/insights/tests/client/apps/test_malware_detection.py @@ -123,6 +123,7 @@ def test_default_options(self): @patch(GET_RULES_TARGET, return_value=TEST_RULE_FILE) @patch(FIND_YARA_TARGET, return_value=YARA) @patch(LOGGER_TARGET) + @patch('insights.client.utilities.write_to_disk', Mock()) def test_running_default_options(self, log_mock, yara, rules, cmd, create_test_files): # Try running malware-detection with the default options # With the default options, test_scan is true, so some of the option values will be changed for that and