mirror of
https://github.com/borgmatic-collective/borgmatic.git
synced 2026-08-06 08:13:01 +02:00
Add "--repository" flag to all actions where it makes sense (#564).
This commit is contained in:
@@ -32,7 +32,7 @@ def test_run_check_calls_hooks_for_configured_repository():
|
||||
)
|
||||
|
||||
|
||||
def test_run_check_runs_with_select_repository():
|
||||
def test_run_check_runs_with_selected_repository():
|
||||
flexmock(module.logger).answer = lambda message: None
|
||||
flexmock(module.borgmatic.config.validate).should_receive(
|
||||
'repositories_match'
|
||||
|
||||
@@ -30,7 +30,7 @@ def test_compact_actions_calls_hooks_for_configured_repository():
|
||||
)
|
||||
|
||||
|
||||
def test_compact_runs_with_select_repository():
|
||||
def test_compact_runs_with_selected_repository():
|
||||
flexmock(module.logger).answer = lambda message: None
|
||||
flexmock(module.borgmatic.config.validate).should_receive(
|
||||
'repositories_match'
|
||||
|
||||
@@ -39,7 +39,7 @@ def test_run_create_executes_and_calls_hooks_for_configured_repository():
|
||||
)
|
||||
|
||||
|
||||
def test_run_create_runs_with_select_repository():
|
||||
def test_run_create_runs_with_selected_repository():
|
||||
flexmock(module.logger).answer = lambda message: None
|
||||
flexmock(module.borgmatic.config.validate).should_receive(
|
||||
'repositories_match'
|
||||
|
||||
@@ -3,7 +3,7 @@ from flexmock import flexmock
|
||||
from borgmatic.actions import prune as module
|
||||
|
||||
|
||||
def test_run_prune_calls_hooks_of_configured_repository():
|
||||
def test_run_prune_calls_hooks_for_configured_repository():
|
||||
flexmock(module.logger).answer = lambda message: None
|
||||
flexmock(module.borgmatic.config.validate).should_receive('repositories_match').never()
|
||||
flexmock(module.borgmatic.borg.prune).should_receive('prune_archives').once()
|
||||
@@ -27,7 +27,7 @@ def test_run_prune_calls_hooks_of_configured_repository():
|
||||
)
|
||||
|
||||
|
||||
def test_run_prune_runs_with_select_repository():
|
||||
def test_run_prune_runs_with_selected_repository():
|
||||
flexmock(module.logger).answer = lambda message: None
|
||||
flexmock(module.borgmatic.config.validate).should_receive(
|
||||
'repositories_match'
|
||||
|
||||
Reference in New Issue
Block a user