From 1dcac44d6c2dacd464abaa49f6bbcf1713d52640 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Sun, 9 Dec 2018 15:49:05 -0800 Subject: [PATCH] Fix broken test of deprecated --excludes option. --- tests/integration/commands/test_borgmatic.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/tests/integration/commands/test_borgmatic.py b/tests/integration/commands/test_borgmatic.py index ed477a8..66ffc5e 100644 --- a/tests/integration/commands/test_borgmatic.py +++ b/tests/integration/commands/test_borgmatic.py @@ -16,14 +16,11 @@ def test_parse_arguments_with_no_arguments_uses_defaults(): assert parser.json is False -def test_parse_arguments_with_path_arguments_overrides_defaults(): +def test_parse_arguments_disallows_deprecated_excludes_option(): flexmock(module.collect).should_receive('get_default_config_paths').and_return(['default']) - parser = module.parse_arguments('--config', 'myconfig', '--excludes', 'myexcludes') - - assert parser.config_paths == ['myconfig'] - assert parser.excludes_filename == 'myexcludes' - assert parser.verbosity is 0 + with pytest.raises(ValueError): + module.parse_arguments('--config', 'myconfig', '--excludes', 'myexcludes') def test_parse_arguments_with_multiple_config_paths_parses_as_list():