Fix incomplete test coverage around --progress argument validation.

This commit is contained in:
Dan Helfman 2018-12-02 15:08:42 -08:00
parent 7417a3cd00
commit 80c69aac05
1 changed files with 9 additions and 0 deletions

View File

@ -88,6 +88,15 @@ def test_parse_arguments_with_invalid_arguments_exits():
module.parse_arguments('--posix-me-harder')
def test_parse_arguments_with_progress_and_create_flags_does_not_raise():
module.parse_arguments('--progress', '--create', '--list')
def test_parse_arguments_with_progress_flag_but_no_create_flag_raises_value_error():
with pytest.raises(ValueError):
module.parse_arguments('--progress', '--list')
def test_parse_arguments_with_json_flag_with_list_or_info_flag_does_not_raise_any_error():
module.parse_arguments('--list', '--json')
module.parse_arguments('--info', '--json')