From e76d5ad9884ab519e8ce3b3206fa953992e38582 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Mon, 27 Jan 2020 12:56:12 -0800 Subject: [PATCH] Fix tests. --- tests/unit/commands/test_borgmatic.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/commands/test_borgmatic.py b/tests/unit/commands/test_borgmatic.py index a3c020c..3ecf8c2 100644 --- a/tests/unit/commands/test_borgmatic.py +++ b/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']}}