swh_scheduler_config = {'db': "dbname=scheduler user=postgres host=127.0.0.1 port=32432 options=''"}
def test_get_lister(swh_scheduler_config):
"""Instantiating a supported lister should be ok
"""
db_url = init_db().url()
for lister_name in SUPPORTED_LISTERS:
lst = get_lister(
lister_name,
db_url,
scheduler={"cls": "local", **swh_scheduler_config},
> **lister_args.get(lister_name, {}),
)
.tox/py3/lib/python3.7/site-packages/swh/lister/tests/test_cli.py:39:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.7/site-packages/swh/lister/__init__.py:57: in get_lister
return lister_cls.from_config(**conf)
.tox/py3/lib/python3.7/site-packages/swh/lister/pattern.py:249: in from_config
return cls(scheduler=scheduler_instance, **config)
.tox/py3/lib/python3.7/site-packages/swh/lister/cgit/lister.py:57: in __init__
self.session.mount(self.url, HTTPAdapter(max_retries=3))
.tox/py3/lib/python3.7/site-packages/requests/sessions.py:755: in mount
keys_to_move = [k for k in self.adapters if len(k) < len(prefix)]
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.0 = <odict_iterator object at 0x7fe748370e08>
> keys_to_move = [k for k in self.adapters if len(k) < len(prefix)]
E TypeError: object of type 'NoneType' has no len()
.tox/py3/lib/python3.7/site-packages/requests/sessions.py:755: TypeError
TEST RESULT
TEST RESULT
- Run At
- Jan 22 2021, 3:56 PM