Skip to content

Commit

Permalink
Fixes a broken test
Browse files Browse the repository at this point in the history
The test_use_default_inputs test function (test_atomic_svc.py) could
not check a default value as the targeted file did exist.
  • Loading branch information
jbaptperez committed Aug 10, 2024
1 parent 4f489bb commit ecfafc3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/test_atomic_svc.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,13 @@ def test_handle_multiline_command_shell_ifthen(self):
def test_use_default_inputs(self, atomic_svc, atomic_test):
platform = 'windows'
string_to_analyze = '#{recon_commands} -a'
got = atomic_svc._use_default_inputs(test=atomic_test,
test = atomic_test
test['input_arguments']['recon_commands']['default'] = \
'PathToAtomicsFolder\\T1016\\src\\nonexistent-qakbot.bat'
got = atomic_svc._use_default_inputs(test=test,
platform=platform,
string_to_analyse=string_to_analyze)
assert got[0] == 'PathToAtomicsFolder\\T1016\\src\\qakbot.bat -a'
assert got[0] == 'PathToAtomicsFolder\\T1016\\src\\nonexistent-qakbot.bat -a'
assert got[1] == []

def test_use_default_inputs_empty_string(self, atomic_svc, atomic_test):
Expand Down

0 comments on commit ecfafc3

Please sign in to comment.