Dan Helfman 5 år sedan
förälder
incheckning
e76d5ad988
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      tests/unit/commands/test_borgmatic.py

+ 2 - 2
tests/unit/commands/test_borgmatic.py

@@ -23,7 +23,7 @@ def test_run_configuration_runs_actions_for_each_repository():
 
 def test_run_configuration_calls_hooks_for_prune_action():
     flexmock(module.borg_environment).should_receive('initialize')
-    flexmock(module.command).should_receive('execute_hook').never()
+    flexmock(module.command).should_receive('execute_hook').twice()
     flexmock(module.dispatch).should_receive('call_hooks').at_least().twice()
     flexmock(module).should_receive('run_actions').and_return([])
     config = {'location': {'repositories': ['foo']}}
@@ -45,7 +45,7 @@ def test_run_configuration_executes_and_calls_hooks_for_create_action():
 
 def test_run_configuration_calls_hooks_for_check_action():
     flexmock(module.borg_environment).should_receive('initialize')
-    flexmock(module.command).should_receive('execute_hook').never()
+    flexmock(module.command).should_receive('execute_hook').twice()
     flexmock(module.dispatch).should_receive('call_hooks').at_least().twice()
     flexmock(module).should_receive('run_actions').and_return([])
     config = {'location': {'repositories': ['foo']}}