cli_runner = <click.testing.CliRunner object at 0x7f20dc483828>
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",
"composer",
"gemspec",
"github",
"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...g-info\npub\n' == 'cff\ncodemet...m\npkg-info\n'
E cff
E codemeta
E composer
E gemspec
E github
E maven
E npm...
E
E ...Full output truncated (3 lines hidden), use '-vv' to show
.tox/py3/lib/python3.7/site-packages/swh/indexer/tests/test_cli.py:108: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Jul 7 2022, 2:36 PM