mirror of
https://github.com/miurahr/aqtinstall.git
synced 2025-12-17 20:54:38 +03:00
Update tests to use list-qt/list-tool syntax
This commit is contained in:
@@ -11,7 +11,7 @@ def test_cli_help(capsys):
|
||||
expected = "".join(
|
||||
[
|
||||
"usage: aqt [-h] [-c CONFIG]\n",
|
||||
" {install,doc,examples,src,tool,list,help,version} ...\n",
|
||||
" {install,doc,examples,src,tool,list-qt,list-tool,help,version} ...\n",
|
||||
"\n",
|
||||
"Installer for Qt SDK.\n",
|
||||
"\n",
|
||||
@@ -23,7 +23,7 @@ def test_cli_help(capsys):
|
||||
"subcommands:\n",
|
||||
" Valid subcommands\n",
|
||||
"\n",
|
||||
" {install,doc,examples,src,tool,list,help,version}\n",
|
||||
" {install,doc,examples,src,tool,list-qt,list-tool,help,version}\n",
|
||||
" subcommand for aqt Qt installer\n",
|
||||
]
|
||||
)
|
||||
@@ -81,7 +81,7 @@ def test_cli_invalid_version(capsys, invalid_version):
|
||||
for cmd in (
|
||||
("install", invalid_version, "mac", "desktop"),
|
||||
("doc", invalid_version, "mac", "desktop"),
|
||||
("list", "qt5", "mac", "desktop", "--modules", invalid_version),
|
||||
("list-qt", "mac", "desktop", "--modules", invalid_version),
|
||||
):
|
||||
with pytest.raises(SystemExit) as pytest_wrapped_e:
|
||||
cli = Cli()
|
||||
@@ -108,7 +108,7 @@ def test_cli_launch_with_no_argument(capsys):
|
||||
expected = "".join(
|
||||
[
|
||||
"usage: aqt [-h] [-c CONFIG]\n",
|
||||
" {install,doc,examples,src,tool,list,help,version} ...\n",
|
||||
" {install,doc,examples,src,tool,list-qt,list-tool,help,version} ...\n",
|
||||
"\n",
|
||||
"Installer for Qt SDK.\n",
|
||||
"\n",
|
||||
@@ -120,7 +120,7 @@ def test_cli_launch_with_no_argument(capsys):
|
||||
"subcommands:\n",
|
||||
" Valid subcommands\n",
|
||||
"\n",
|
||||
" {install,doc,examples,src,tool,list,help,version}\n",
|
||||
" {install,doc,examples,src,tool,list-qt,list-tool,help,version}\n",
|
||||
" subcommand for aqt Qt installer\n",
|
||||
]
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user