Fixed -not option with no arguments bug

This commit is contained in:
apainintheneck 2022-05-01 13:33:33 -07:00
parent 6a12853b65
commit 8da990f602
2 changed files with 8 additions and 2 deletions

View file

@ -88,6 +88,12 @@ def test_end_date_alone():
assert expected == cli_as_dict("-to 2020-01-01")
def test_not_empty():
with pytest.raises(SystemExit) as wrapped_e:
cli_as_dict("-not")
assert wrapped_e.value.code == 2
def test_not_alone():
assert cli_as_dict("-not test") == expected_args(excluded=["test"])