|
@@ -69,10 +69,12 @@ def test_make_list_command_does_not_duplicate_flags_or_raise():
|
|
if argument_name.startswith('_'):
|
|
if argument_name.startswith('_'):
|
|
continue
|
|
continue
|
|
|
|
|
|
- borgmatic.borg.list.make_list_command(
|
|
|
|
|
|
+ command = borgmatic.borg.list.make_list_command(
|
|
'repo', {}, '2.3.4', fuzz_argument(arguments, argument_name)
|
|
'repo', {}, '2.3.4', fuzz_argument(arguments, argument_name)
|
|
)
|
|
)
|
|
|
|
|
|
|
|
+ assert_command_does_not_duplicate_flags(command)
|
|
|
|
+
|
|
|
|
|
|
def test_make_rlist_command_does_not_duplicate_flags_or_raise():
|
|
def test_make_rlist_command_does_not_duplicate_flags_or_raise():
|
|
arguments = borgmatic.commands.arguments.parse_arguments('rlist')['rlist']
|
|
arguments = borgmatic.commands.arguments.parse_arguments('rlist')['rlist']
|
|
@@ -81,10 +83,12 @@ def test_make_rlist_command_does_not_duplicate_flags_or_raise():
|
|
if argument_name.startswith('_'):
|
|
if argument_name.startswith('_'):
|
|
continue
|
|
continue
|
|
|
|
|
|
- borgmatic.borg.rlist.make_rlist_command(
|
|
|
|
|
|
+ command = borgmatic.borg.rlist.make_rlist_command(
|
|
'repo', {}, '2.3.4', fuzz_argument(arguments, argument_name)
|
|
'repo', {}, '2.3.4', fuzz_argument(arguments, argument_name)
|
|
)
|
|
)
|
|
|
|
|
|
|
|
+ assert_command_does_not_duplicate_flags(command)
|
|
|
|
+
|
|
|
|
|
|
def test_display_archives_info_command_does_not_duplicate_flags_or_raise():
|
|
def test_display_archives_info_command_does_not_duplicate_flags_or_raise():
|
|
arguments = borgmatic.commands.arguments.parse_arguments('info')['info']
|
|
arguments = borgmatic.commands.arguments.parse_arguments('info')['info']
|