cli_runner = <click.testing.CliRunner object at 0x7fa6e7b59d68>
postgresql = <connection object at 0x7fa6ea4057c8; dsn: 'user=postgres password=xxx dbname=tests host=127.0.0.1 port=26870 options=''', closed: 0>
mock_import_swhmodule = <function mock_import_swhmodule.<locals>.import_swhmodule_mock at 0x7fa6e7a61400>
module = 'test.cli_new'
datadir = '/var/lib/jenkins/workspace/DCORE/tests-on-diff/.tox/py3-core-db-server-github-slow-cover/lib/python3.7/site-packages/swh/core/db/tests/data'
@pytest.mark.parametrize("module", ["test.cli_new"])
def test_db_utils_upgrade(
cli_runner, postgresql, mock_import_swhmodule, module, datadir
):
"""Check swh_db_upgrade"""
conninfo = craft_conninfo(postgresql)
result = cli_runner.invoke(swhdb, ["init-admin", module, "--dbname", conninfo])
> assert result.exit_code == 0, f"Unexpected output: {result.output}"
E AssertionError: Unexpected output:
E assert 1 == 0
E + where 1 = <Result UndefinedObject('role "guest" does not exist\n')>.exit_code
.tox/py3-core-db-server-github-slow-cover/lib/python3.7/site-packages/swh/core/db/tests/test_db_utils.py:110: AssertionError
TEST RESULT
TEST RESULT
- Run At
- May 31 2022, 9:21 AM