swhmain = <AliasedGroup swh>
def test_swh_db_help(swhmain):
swhmain.add_command(swhdb)
runner = CliRunner()
result = runner.invoke(swhmain, ["db", "-h"])
assert result.exit_code == 0
> assert result.output == help_db_msg
E AssertionError: assert 'Usage: swh d...tensions...\n' == 'Usage: swh d...ensions,...\n'
E Usage: swh db [OPTIONS] COMMAND [ARGS]...
E
E Software Heritage database generic tools.
E
E Options:
E -C, --config-file FILE Configuration file.
E -h, --help Show this message and exit....
E
E ...Full output truncated (9 lines hidden), use '-vv' to show
.tox/py3-core-db-server-slow-cover/lib/python3.7/site-packages/swh/core/db/tests/test_cli.py:59: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Oct 28 2020, 6:36 PM