Deprecate the download argument. Fixes #38

This commit is contained in:
Eddy Hintze
2021-05-21 13:17:47 +00:00
parent c6bb45911d
commit 95302d81e5
6 changed files with 54 additions and 38 deletions

13
tests/test_cli.py Normal file
View File

@@ -0,0 +1,13 @@
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'