cli_runner = <click.testing.CliRunner object at 0x7f832844e2b0>
swh_config = '/tmp/pytest-of-jenkins/pytest-0/test_cli_mapping_list0/indexer.yml'
def test_cli_mapping_list(cli_runner, swh_config):
result = cli_runner.invoke(
indexer_cli_group,
["-C", swh_config, "mapping", "list"],
catch_exceptions=False,
)
expected_output = "\n".join(
[
"cff",
"codemeta",
"gemspec",
"maven",
"npm",
"pkg-info",
"",
] # must be sorted for test to pass
)
assert result.exit_code == 0, result.output
> assert result.output == expected_output
E AssertionError: assert 'cff\ncodemet...m\npkg-info\n' == 'cff\ncodemet...m\npkg-info\n'
E cff
E codemeta
E gemspec
E + github
E maven
E npm
E pkg-info
.tox/py3/lib/python3.7/site-packages/swh/indexer/tests/test_cli.py:106: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Jun 29 2022, 6:15 PM