Add date-based matching flags to NEWS (#659).
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Dan Helfman 2023-05-23 14:30:16 -07:00
parent 35b5c62ca6
commit 9299841a5b
2 changed files with 22 additions and 21 deletions

1
NEWS
View File

@ -1,5 +1,6 @@
1.7.14.dev0 1.7.14.dev0
* #688: Tweak archive check probing logic to use the newest timestamp found when multiple exist. * #688: Tweak archive check probing logic to use the newest timestamp found when multiple exist.
* #659: Add Borg 2 date-based matching flags to various actions for archive selection.
1.7.13 1.7.13
* #375: Restore particular PostgreSQL schemas from a database dump via "borgmatic restore --schema" * #375: Restore particular PostgreSQL schemas from a database dump via "borgmatic restore --schema"

View File

@ -68,6 +68,27 @@ def test_transfer_archives_command_does_not_duplicate_flags_or_raise():
) )
def test_prune_archives_command_does_not_duplicate_flags_or_raise():
arguments = borgmatic.commands.arguments.parse_arguments('prune')['prune']
flexmock(borgmatic.borg.prune).should_receive('execute_command').replace_with(
assert_command_does_not_duplicate_flags
)
for argument_name in dir(arguments):
if argument_name.startswith('_'):
continue
borgmatic.borg.prune.prune_archives(
False,
'repo',
{},
{},
'2.3.4',
fuzz_argument(arguments, argument_name),
argparse.Namespace(log_json=False),
)
def test_make_list_command_does_not_duplicate_flags_or_raise(): def test_make_list_command_does_not_duplicate_flags_or_raise():
arguments = borgmatic.commands.arguments.parse_arguments('list')['list'] arguments = borgmatic.commands.arguments.parse_arguments('list')['list']
@ -124,24 +145,3 @@ def test_display_archives_info_command_does_not_duplicate_flags_or_raise():
fuzz_argument(arguments, argument_name), fuzz_argument(arguments, argument_name),
argparse.Namespace(log_json=False), argparse.Namespace(log_json=False),
) )
def test_prune_archives_command_does_not_duplicate_flags_or_raise():
arguments = borgmatic.commands.arguments.parse_arguments('prune')['prune']
flexmock(borgmatic.borg.prune).should_receive('execute_command').replace_with(
assert_command_does_not_duplicate_flags
)
for argument_name in dir(arguments):
if argument_name.startswith('_'):
continue
borgmatic.borg.prune.prune_archives(
False,
'repo',
{},
{},
'2.3.4',
fuzz_argument(arguments, argument_name),
argparse.Namespace(log_json=False),
)