Add new "transfer" action for Borg 2 (#557).
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Dan Helfman 2022-08-18 23:06:51 -07:00
commit 7dee6194a2
10 changed files with 307 additions and 46 deletions

View file

@ -287,15 +287,6 @@ def test_parse_arguments_allows_init_and_create():
module.parse_arguments('--config', 'myconfig', 'init', '--encryption', 'repokey', 'create')
def test_parse_arguments_disallows_init_and_dry_run():
flexmock(module.collect).should_receive('get_default_config_paths').and_return(['default'])
with pytest.raises(ValueError):
module.parse_arguments(
'--config', 'myconfig', 'init', '--encryption', 'repokey', '--dry-run'
)
def test_parse_arguments_disallows_repository_unless_action_consumes_it():
flexmock(module.collect).should_receive('get_default_config_paths').and_return(['default'])