mirror of
https://github.com/miurahr/aqtinstall.git
synced 2025-12-18 13:14: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:
|
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):
|
def make_parser_it(cmd: str, desc: str, set_parser_cmd, formatter_class):
|
||||||
kwargs = {"formatter_class": formatter_class} if formatter_class else {}
|
kwargs = {"formatter_class": formatter_class} if formatter_class else {}
|
||||||
|
|||||||
@@ -110,9 +110,7 @@ def test_cli_invalid_version(capsys, invalid_version):
|
|||||||
r"ERROR :.*Invalid version: '" + invalid_version + r"'! Please use the form '5\.X\.Y'\.\n.*"
|
r"ERROR :.*Invalid version: '" + invalid_version + r"'! Please use the form '5\.X\.Y'\.\n.*"
|
||||||
)
|
)
|
||||||
|
|
||||||
for cmd in (
|
for cmd in (("list-qt", "mac", "desktop", "--arch", invalid_version),):
|
||||||
("list-qt", "mac", "desktop", "--arch", invalid_version),
|
|
||||||
):
|
|
||||||
cli = Cli()
|
cli = Cli()
|
||||||
assert cli.run(cmd) == 1
|
assert cli.run(cmd) == 1
|
||||||
out, err = capsys.readouterr()
|
out, err = capsys.readouterr()
|
||||||
|
|||||||
Reference in New Issue
Block a user