mirror of
https://github.com/xtream1101/humblebundle-downloader.git
synced 2024-11-20 08:49:17 +01:00
14 lines
395 B
Python
14 lines
395 B
Python
|
import pytest
|
||
|
from humblebundle_downloader.cli import parse_args
|
||
|
|
||
|
|
||
|
def test_old_action_format():
|
||
|
with pytest.raises(DeprecationWarning):
|
||
|
_ = parse_args(['download', '-l', 'some_path', '-c', 'fake_cookie'])
|
||
|
|
||
|
|
||
|
def test_no_action():
|
||
|
args = parse_args(['-l', 'some_path', '-c', 'fake_cookie'])
|
||
|
assert args.library_path == 'some_path'
|
||
|
assert args.cookie_file == 'fake_cookie'
|