Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.vault.tests.test_backend::test_cook_request_idempotent
Failed

TEST RESULT

Run At
Oct 16 2020, 7:39 PM
Details
request = <SubRequest 'swh_vault' for <Function test_cook_request_idempotent>> swh_vault_config = {'cache': {'args': {'allow_delete': True, 'root': '/tmp/pytest-of-jenkins/pytest-0/test_cook_request_idempotent0', 'sl...'root': '/tmp/pytest-of-jenkins/pytest-0/test_cook_request_idempotent0', 'slicing': '0:1/1:5'}, 'cls': 'pathslicing'}}} postgresql = <connection object at 0x7fa9c4cb6528; dsn: 'user=postgres password=xxx dbname=tests host=127.0.0.1 port=18836 options=''', closed: 0> postgresql2 = <connection object at 0x7fa9c4cb6660; dsn: 'user=postgres password=xxx dbname=tests2 host=127.0.0.1 port=18836 options=''', closed: 0> tmp_path = PosixPath('/tmp/pytest-of-jenkins/pytest-0/test_cook_request_idempotent0') @pytest.fixture def swh_vault(request, swh_vault_config, postgresql, postgresql2, tmp_path): for sql_dir, pg in ((SQL_DIR, postgresql), (STORAGE_SQL_DIR, postgresql2)): dump_files = os.path.join(sql_dir, "*.sql") all_dump_files = sorted(glob.glob(dump_files), key=sortkey) for fname in all_dump_files: subprocess.check_call( [ "psql", "--quiet", "--no-psqlrc", "-v", "ON_ERROR_STOP=1", "-d", pg.dsn, "-f", fname, ] ) > return get_vault("local", **swh_vault_config) .tox/py3/lib/python3.7/site-packages/swh/vault/tests/conftest.py:83: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.7/site-packages/swh/vault/__init__.py:54: in get_vault return Vault(**kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <swh.vault.backend.VaultBackend object at 0x7fa9c4c9eac8> db = "user=postgres password=xxx dbname=tests host=127.0.0.1 port=18836 options=''" config = {'cache': {'args': {'allow_delete': True, 'root': '/tmp/pytest-of-jenkins/pytest-0/test_cook_request_idempotent0', 'sl...'root': '/tmp/pytest-of-jenkins/pytest-0/test_cook_request_idempotent0', 'slicing': '0:1/1:5'}, 'cls': 'pathslicing'}}} def __init__(self, db, **config): self.config = config self.cache = VaultCache(**config["cache"]) > self.scheduler = get_scheduler(**config["scheduler"]) E TypeError: get_scheduler() missing 1 required positional argument: 'cls' .tox/py3/lib/python3.7/site-packages/swh/vault/backend.py:76: TypeError