Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.lister.tests.test_cli::test_get_lister
Failed

TEST RESULT

Run At
Sep 5 2022, 8:17 AM
Details
swh_scheduler_config = {'db': "user=postgres password=xxx dbname=tests host=127.0.0.1 port=17073 options=''"} def test_get_lister(swh_scheduler_config): """Instantiating a supported lister should be ok""" # Drop launchpad lister from the lister to check, its test setup is more involved # than the other listers and it's not currently done here for lister_name in SUPPORTED_LISTERS: lst = get_lister( lister_name, scheduler={"cls": "local", **swh_scheduler_config}, > **lister_args.get(lister_name, {}), ) .tox/py3/lib/python3.7/site-packages/swh/lister/tests/test_cli.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.7/site-packages/swh/lister/__init__.py:57: in get_lister return lister_cls.from_config(**conf) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = <class 'swh.lister.fedora.lister.FedoraLister'> scheduler = {'cls': 'local', 'db': "user=postgres password=xxx dbname=tests host=127.0.0.1 port=17073 options=''"} config = {'mirror_url': 'https://eu.edge.kernel.org/fedora/releases/'} legacy_key = 'celery' scheduler_instance = <swh.scheduler.backend.SchedulerBackend object at 0x7f8983c25860> @classmethod def from_config(cls, scheduler: Dict[str, Any], **config: Any): """Instantiate a lister from a configuration dict. This is basically a backwards-compatibility shim for the CLI. Args: scheduler: instantiation config for the scheduler config: the configuration dict for the lister, with the following keys: - credentials (optional): credentials list for the scheduler - any other kwargs passed to the lister. Returns: the instantiated lister """ # Drop the legacy config keys which aren't used for this generation of listers. for legacy_key in ("storage", "lister", "celery"): config.pop(legacy_key, None) # Instantiate the scheduler scheduler_instance = get_scheduler(**scheduler) > return cls(scheduler=scheduler_instance, **config) E TypeError: __init__() got an unexpected keyword argument 'mirror_url' .tox/py3/lib/python3.7/site-packages/swh/lister/pattern.py:261: TypeError