Changeset View
Changeset View
Standalone View
Standalone View
swh/indexer/tests/test_cli.py
Show First 20 Lines • Show All 83 Lines • ▼ Show 20 Lines | result = cli_runner.invoke( | ||||
indexer_cli_group, | indexer_cli_group, | ||||
["-C", swh_config, "mapping", "list"], | ["-C", swh_config, "mapping", "list"], | ||||
catch_exceptions=False, | catch_exceptions=False, | ||||
) | ) | ||||
expected_output = "\n".join( | expected_output = "\n".join( | ||||
[ | [ | ||||
"cff", | "cff", | ||||
"codemeta", | "codemeta", | ||||
"description", | |||||
"gemspec", | "gemspec", | ||||
"maven", | "maven", | ||||
"npm", | "npm", | ||||
"pkg-info", | "pkg-info", | ||||
"", | "", | ||||
] # must be sorted for test to pass | ] # must be sorted for test to pass | ||||
) | ) | ||||
assert result.exit_code == 0, result.output | assert result.exit_code == 0, result.output | ||||
▲ Show 20 Lines • Show All 402 Lines • Show Last 20 Lines |