mirror of
https://github.com/xtream1101/humblebundle-downloader.git
synced 2024-11-20 08:49:17 +01:00
Test case for cli startup without any arguments
This commit is contained in:
parent
6a9773734a
commit
59db1ac33f
@ -11,3 +11,9 @@ def test_no_action():
|
|||||||
args = parse_args(['-l', 'some_path', '-c', 'fake_cookie'])
|
args = parse_args(['-l', 'some_path', '-c', 'fake_cookie'])
|
||||||
assert args.library_path == 'some_path'
|
assert args.library_path == 'some_path'
|
||||||
assert args.cookie_file == 'fake_cookie'
|
assert args.cookie_file == 'fake_cookie'
|
||||||
|
|
||||||
|
|
||||||
|
def test_no_args():
|
||||||
|
with pytest.raises(SystemExit) as ex:
|
||||||
|
parse_args([])
|
||||||
|
assert ex.value.code == 2
|
||||||
|
Loading…
Reference in New Issue
Block a user