mirror of
https://github.com/miurahr/aqtinstall.git
synced 2025-12-17 12:44:38 +03:00
fix: test: update expectations
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
This commit is contained in:
@@ -54,26 +54,6 @@ def test_cli_help(capsys):
|
||||
assert expected_help(out)
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"qt_version, modules, unexpected_modules",
|
||||
(
|
||||
("5.11.3", ["qtcharts", "qtwebengine"], []),
|
||||
("5.11.3", ["not_exist"], ["not_exist"]),
|
||||
("5.11.3", ["qtcharts", "qtwebengine", "not_exist"], ["not_exist"]),
|
||||
("5.11.3", None, []),
|
||||
("5.15.0", ["Unknown"], ["Unknown"]),
|
||||
),
|
||||
)
|
||||
def test_cli_select_unexpected_modules(qt_version: str, modules: Optional[List[str]], unexpected_modules: List[str]):
|
||||
cli = Cli()
|
||||
cli._setup_settings()
|
||||
assert cli._select_unexpected_modules(qt_version, modules) == unexpected_modules
|
||||
|
||||
nonexistent_qt = "5.16.0"
|
||||
assert cli._select_unexpected_modules(nonexistent_qt, modules) == sorted(modules or [])
|
||||
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"host, target, arch, version_or_spec, expected_version, is_bad_spec",
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user