Update tests to use list-qt/list-tool syntax

This commit is contained in:
David Dalcino
2021-07-20 13:32:23 -07:00
parent 9f4b90966a
commit c3d202730c
12 changed files with 175 additions and 244 deletions

View File

@@ -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",
]
)