mirror of
https://github.com/miurahr/aqtinstall.git
synced 2025-12-18 05:04:38 +03:00
Fix error when no patchlevel version number exist
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
This commit is contained in:
@@ -24,3 +24,11 @@ def test_cli_help(capsys):
|
||||
cli.run(["help"])
|
||||
out, err = capsys.readouterr()
|
||||
assert out == expected
|
||||
|
||||
|
||||
def test_cli_check_module():
|
||||
cli = aqt.cli.Cli()
|
||||
assert cli._check_modules_arg('5.11.3', ['qtcharts', 'qtwebengine'])
|
||||
assert not cli._check_modules_arg('5.7', ['not_exist'])
|
||||
assert cli._check_modules_arg('5.14.0', None)
|
||||
assert not cli._check_modules_arg('5.15.0', ["Unknown"])
|
||||
|
||||
Reference in New Issue
Block a user