Fix tests: config change lister_db_url -> lister had not been applied in tests

making 2 of them fail (in test_bb_lister.py and test_gh_lister.py).
This commit is contained in:
David Douard 2019-02-06 16:42:27 +01:00
parent c1a3c10c5c
commit 1756e2efbf

View file

@ -214,7 +214,12 @@ class HttpListerTester(HttpListerTesterBase, abc.ABC):
initdb_args = ' '.join([initdb_args, '-E UTF-8'])
db = Postgresql(initdb_args=initdb_args)
fl = self.get_fl(override_config={'lister_db_url': db.url()})
fl = self.get_fl(override_config={
'lister': {
'cls': 'local',
'args': {'db': db.url()}
}
})
self.init_db(db, fl.MODEL)
self.disable_storage_and_scheduler(fl)