lister.config: Adapt scheduler configuration structure

This commit is contained in:
Antoine R. Dumont (@ardumont) 2020-10-16 14:12:51 +02:00
parent 30ad6200a2
commit d7d38090f5
No known key found for this signature in database
GPG key ID: 52E2E9840D10C3B8
2 changed files with 2 additions and 2 deletions

View file

@ -1,2 +1,2 @@
swh.core >= 0.3
swh.scheduler >= 0.0.58
swh.scheduler >= 0.7.0

View file

@ -37,7 +37,7 @@ def lister_under_test():
@pytest.fixture
def swh_lister_config(lister_db_url, swh_scheduler_config):
return {
"scheduler": {"cls": "local", "args": {"db": swh_scheduler_config}["db"]},
"scheduler": {"cls": "local", **swh_scheduler_config},
"lister": {"cls": "local", "args": {"db": lister_db_url},},
"credentials": {},
"cache_responses": False,