mirror of
https://github.com/miurahr/aqtinstall.git
synced 2025-12-18 05:04:38 +03:00
fix test error
This commit is contained in:
@@ -699,7 +699,7 @@ class MetadataFactory:
|
||||
raise CliInputError(f"The requested modules were not located: {not_found}")
|
||||
|
||||
csv_lists = [mod["DownloadableArchives"] for mod in mod_metadata.values()]
|
||||
return sorted([arc.split("-")[0] for csv in csv_lists for arc in csv.split(", ")])
|
||||
return sorted(set([arc.split("-")[0] for csv in csv_lists for arc in csv.split(", ")]))
|
||||
|
||||
def describe_filters(self) -> str:
|
||||
if self.spec is None:
|
||||
|
||||
@@ -244,7 +244,7 @@ def test_list_archives(
|
||||
with pytest.raises(CliInputError) as err:
|
||||
MetadataFactory(archive_id, archives_query=archives_query).getList()
|
||||
assert err.type == CliInputError
|
||||
assert format(err.value) == expected_err_msg
|
||||
assert format(err.value).startswith(expected_err_msg)
|
||||
|
||||
cli = Cli()
|
||||
assert 1 == cli.run(cli_args)
|
||||
|
||||
Reference in New Issue
Block a user