mirror of
https://github.com/miurahr/aqtinstall.git
synced 2025-12-17 20:54:38 +03:00
Remove extensions
This commit is contained in:
@@ -304,6 +304,34 @@ def test_cli_legacy_tool_new_syntax(monkeypatch, capsys, cmd):
|
||||
assert actual == expected
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"cmd, expect_err",
|
||||
(
|
||||
(
|
||||
"list-qt mac --extension wasm",
|
||||
"WARNING : The parameter 'extension' with value 'wasm' is deprecated "
|
||||
"and marked for removal in a future version of aqt.\n"
|
||||
"In the future, please omit this parameter.\n"
|
||||
"WARNING : The '--extension' flag will be ignored.\n",
|
||||
),
|
||||
(
|
||||
"list-qt mac desktop --extensions 6.2.0",
|
||||
"WARNING : The parameter 'extensions' with value '6.2.0' is deprecated "
|
||||
"and marked for removal in a future version of aqt.\n"
|
||||
"In the future, please omit this parameter.\n"
|
||||
"WARNING : The '--extensions' flag will always return an empty list, "
|
||||
"because there are no useful arguments for the '--extension' flag.\n",
|
||||
),
|
||||
),
|
||||
)
|
||||
def test_cli_list_qt_deprecated_flags(capsys, cmd: str, expect_err: str):
|
||||
cli = Cli()
|
||||
cli._setup_settings()
|
||||
assert 0 == cli.run(cmd.split())
|
||||
out, err = capsys.readouterr()
|
||||
assert err == expect_err
|
||||
|
||||
|
||||
# These commands come directly from examples in the legacy documentation
|
||||
@pytest.mark.parametrize(
|
||||
"cmd",
|
||||
|
||||
Reference in New Issue
Block a user