Changeset View
Changeset View
Standalone View
Standalone View
swh/indexer/tests/test_cli.py
Show First 20 Lines • Show All 80 Lines • ▼ Show 20 Lines | |||||
def test_cli_mapping_list(cli_runner, swh_config): | def test_cli_mapping_list(cli_runner, swh_config): | ||||
result = cli_runner.invoke( | 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( | ||||
["codemeta", "gemspec", "maven", "npm", "pkg-info", "",] | [ | ||||
"cff", | |||||
"codemeta", | |||||
"gemspec", | |||||
"maven", | |||||
"npm", | |||||
"pkg-info", | |||||
"", | |||||
] # must be sorted for test to pass | |||||
) | ) | ||||
assert result.exit_code == 0, result.output | assert result.exit_code == 0, result.output | ||||
assert result.output == expected_output | assert result.output == expected_output | ||||
def test_cli_mapping_list_terms(cli_runner, swh_config): | def test_cli_mapping_list_terms(cli_runner, swh_config): | ||||
result = cli_runner.invoke( | result = cli_runner.invoke( | ||||
indexer_cli_group, | indexer_cli_group, | ||||
▲ Show 20 Lines • Show All 396 Lines • Show Last 20 Lines |