Page MenuHomeSoftware Heritage

Jenkins > .tox.py3-core-db-server-github-slow-cover.lib.python3.7.site-packages.swh.core.db.tests.test_cli::test_cli_swh_db_initialization_idempotent
Failed

TEST RESULT

Run At
May 31 2022, 9:21 AM
Details
swh_db_cli = (<click.testing.CliRunner object at 0x7fa6e883e198>, {'channel_binding': 'prefer', 'dbname': 'tests', 'gssencmode': 'prefer', 'host': '127.0.0.1', ...}) mock_import_swhmodule = <function mock_import_swhmodule.<locals>.import_swhmodule_mock at 0x7fa6e8644b70> postgresql = <connection object at 0x7fa6eb2d1048; dsn: 'user=postgres password=xxx dbname=tests host=127.0.0.1 port=26870 options=''', closed: 0> def test_cli_swh_db_initialization_idempotent( swh_db_cli, mock_import_swhmodule, postgresql ): """Multiple runs of the init commands are idempotent""" module_name = "test.cli" # mocked cli_runner, db_params = swh_db_cli result = cli_runner.invoke( swhdb, ["init-admin", module_name, "--dbname", db_params["dbname"]] ) > 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_cli.py:188: AssertionError