deposit_config_path = '/tmp/pytest-of-jenkins/pytest-0/test_metadata_get_ko0/deposit.yml'
swh_scheduler_config = {'db': "user=postgres password=xxx dbname=tests host=127.0.0.1 port=17789 options=''"}
@pytest.fixture(autouse=True)
def deposit_autoconfig(deposit_config_path, swh_scheduler_config):
"""Enforce config for deposit classes inherited from APIConfig."""
cfg = read(deposit_config_path)
# scheduler setup: require the load-deposit tasks (already existing in production)
> scheduler = get_scheduler(**cfg["scheduler"])
E KeyError: 'scheduler'
.tox/py3/lib/python3.7/site-packages/swh/deposit/tests/conftest.py:92: KeyError
TEST RESULT
TEST RESULT
- Run At
- Sep 23 2020, 2:52 PM