Skip to content

Commit

Permalink
Avoid test to write in disk if machine-id is not found (#3543)
Browse files Browse the repository at this point in the history
Signed-off-by: ahitacat <[email protected]>
  • Loading branch information
ahitacat authored Oct 27, 2022
1 parent 88f32d2 commit 468c6b4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions insights/tests/client/apps/test_malware_detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 468c6b4

Please sign in to comment.