Browse Source

Fix incomplete test coverage around --progress argument validation.

Dan Helfman 1 week ago
parent
commit
80c69aac05
1 changed files with 9 additions and 0 deletions
  1. 9
    0
      tests/integration/commands/test_borgmatic.py

+ 9
- 0
tests/integration/commands/test_borgmatic.py View File

@@ -88,6 +88,15 @@ def test_parse_arguments_with_invalid_arguments_exits():
88 88
         module.parse_arguments('--posix-me-harder')
89 89
 
90 90
 
91
+def test_parse_arguments_with_progress_and_create_flags_does_not_raise():
92
+    module.parse_arguments('--progress', '--create', '--list')
93
+
94
+
95
+def test_parse_arguments_with_progress_flag_but_no_create_flag_raises_value_error():
96
+    with pytest.raises(ValueError):
97
+        module.parse_arguments('--progress', '--list')
98
+
99
+
91 100
 def test_parse_arguments_with_json_flag_with_list_or_info_flag_does_not_raise_any_error():
92 101
     module.parse_arguments('--list', '--json')
93 102
     module.parse_arguments('--info', '--json')

Loading…
Cancel
Save