瀏覽代碼

Fix tests.

Dan Helfman 5 年之前
父節點
當前提交
e76d5ad988
共有 1 個文件被更改,包括 2 次插入2 次删除
  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']}}