@@ -16,8 +16,7 @@ def expected_help(actual, prefix=None):
16
16
expected = (
17
17
"usage: aqt [-h] [-c CONFIG]\n "
18
18
" {install-qt,install-tool,install-doc,install-example,install-src,"
19
- "list-qt,list-tool,list-doc,list-example,list-src,"
20
- "install,tool,doc,examples,src,help,version}\n "
19
+ "list-qt,list-tool,list-doc,list-example,list-src,help,version}\n "
21
20
" ...\n "
22
21
"\n "
23
22
"Another unofficial Qt Installer.\n "
@@ -32,13 +31,9 @@ def expected_help(actual, prefix=None):
32
31
" aqt accepts several subcommands:\n "
33
32
" install-* subcommands are commands that install components\n "
34
33
" list-* subcommands are commands that show available components\n "
35
- " \n "
36
- " commands {install|tool|src|examples|doc} are deprecated and marked for "
37
- "removal\n "
38
34
"\n "
39
35
" {install-qt,install-tool,install-doc,install-example,install-src,list-qt,"
40
- "list-tool,list-doc,list-example,list-src,"
41
- "install,tool,doc,examples,src,help,version}\n "
36
+ "list-tool,list-doc,list-example,list-src,help,version}\n "
42
37
" Please refer to each help message by using '--help' "
43
38
"with each subcommand\n " ,
44
39
)
@@ -110,14 +105,12 @@ def test_cli_invalid_version(capsys, invalid_version):
110
105
cli ._setup_settings ()
111
106
112
107
matcher = re .compile (
113
- r"^INFO : aqtinstall\(aqt\) v.* on Python 3.*\n"
108
+ # r"^INFO : aqtinstall\(aqt\) v.* on Python 3.*\n"
114
109
r"(.*\n)*"
115
110
r"ERROR :.*Invalid version: '" + invalid_version + r"'! Please use the form '5\.X\.Y'\.\n.*"
116
111
)
117
112
118
113
for cmd in (
119
- ("install" , invalid_version , "mac" , "desktop" ),
120
- ("doc" , invalid_version , "mac" , "desktop" ),
121
114
("list-qt" , "mac" , "desktop" , "--arch" , invalid_version ),
122
115
):
123
116
cli = Cli ()
0 commit comments