mirror of
https://github.com/miurahr/aqtinstall.git
synced 2025-12-17 04:34:37 +03:00
style: remove unused field and apply black
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
This commit is contained in:
@@ -721,7 +721,6 @@ class Cli:
|
||||
)
|
||||
|
||||
def _make_all_parsers(self, subparsers: argparse._SubParsersAction) -> None:
|
||||
deprecated_msg = "This command is deprecated and marked for removal in a future version of aqt."
|
||||
|
||||
def make_parser_it(cmd: str, desc: str, set_parser_cmd, formatter_class):
|
||||
kwargs = {"formatter_class": formatter_class} if formatter_class else {}
|
||||
|
||||
@@ -105,14 +105,12 @@ def test_cli_invalid_version(capsys, invalid_version):
|
||||
cli._setup_settings()
|
||||
|
||||
matcher = re.compile(
|
||||
# r"^INFO : aqtinstall\(aqt\) v.* on Python 3.*\n"
|
||||
# r"^INFO : aqtinstall\(aqt\) v.* on Python 3.*\n"
|
||||
r"(.*\n)*"
|
||||
r"ERROR :.*Invalid version: '" + invalid_version + r"'! Please use the form '5\.X\.Y'\.\n.*"
|
||||
)
|
||||
|
||||
for cmd in (
|
||||
("list-qt", "mac", "desktop", "--arch", invalid_version),
|
||||
):
|
||||
for cmd in (("list-qt", "mac", "desktop", "--arch", invalid_version),):
|
||||
cli = Cli()
|
||||
assert cli.run(cmd) == 1
|
||||
out, err = capsys.readouterr()
|
||||
|
||||
Reference in New Issue
Block a user