mirror of
https://github.com/miurahr/aqtinstall.git
synced 2025-12-18 13:14:37 +03:00
Update unit test for additions of subcommands
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
This commit is contained in:
@@ -3,7 +3,7 @@ import aqt
|
|||||||
|
|
||||||
def test_cli_help(capsys):
|
def test_cli_help(capsys):
|
||||||
expected = "".join(["usage: aqt [-h] [--logging-conf LOGGING_CONF] [--logger LOGGER]\n",
|
expected = "".join(["usage: aqt [-h] [--logging-conf LOGGING_CONF] [--logger LOGGER]\n",
|
||||||
" {install,tool,list,help} ...\n",
|
" {install,doc,examples,src,tool,list,help} ...\n",
|
||||||
"\n",
|
"\n",
|
||||||
"Installer for Qt SDK.\n",
|
"Installer for Qt SDK.\n",
|
||||||
"\n",
|
"\n",
|
||||||
@@ -16,7 +16,7 @@ def test_cli_help(capsys):
|
|||||||
"subcommands:\n",
|
"subcommands:\n",
|
||||||
" Valid subcommands\n",
|
" Valid subcommands\n",
|
||||||
"\n",
|
"\n",
|
||||||
" {install,tool,list,help}\n",
|
" {install,doc,examples,src,tool,list,help}\n",
|
||||||
" subcommand for aqt Qt installer\n"])
|
" subcommand for aqt Qt installer\n"])
|
||||||
cli = aqt.cli.Cli()
|
cli = aqt.cli.Cli()
|
||||||
cli.run(["help"])
|
cli.run(["help"])
|
||||||
@@ -56,7 +56,7 @@ def test_cli_check_mirror():
|
|||||||
|
|
||||||
def test_cli_launch_with_no_argument(capsys):
|
def test_cli_launch_with_no_argument(capsys):
|
||||||
expected = "".join(["usage: aqt [-h] [--logging-conf LOGGING_CONF] [--logger LOGGER]\n",
|
expected = "".join(["usage: aqt [-h] [--logging-conf LOGGING_CONF] [--logger LOGGER]\n",
|
||||||
" {install,tool,list,help} ...\n",
|
" {install,doc,examples,src,tool,list,help} ...\n",
|
||||||
"\n",
|
"\n",
|
||||||
"Installer for Qt SDK.\n",
|
"Installer for Qt SDK.\n",
|
||||||
"\n",
|
"\n",
|
||||||
@@ -69,7 +69,7 @@ def test_cli_launch_with_no_argument(capsys):
|
|||||||
"subcommands:\n",
|
"subcommands:\n",
|
||||||
" Valid subcommands\n",
|
" Valid subcommands\n",
|
||||||
"\n",
|
"\n",
|
||||||
" {install,tool,list,help}\n",
|
" {install,doc,examples,src,tool,list,help}\n",
|
||||||
" subcommand for aqt Qt installer\n"])
|
" subcommand for aqt Qt installer\n"])
|
||||||
cli = aqt.cli.Cli()
|
cli = aqt.cli.Cli()
|
||||||
cli.run([])
|
cli.run([])
|
||||||
|
|||||||
Reference in New Issue
Block a user