swh_scheduler_celery_app = <Celery celery.tests at 0x7f51ff2f0c50>
swh_scheduler_celery_includes = ['swh.scheduler.tests.tasks', 'swh.lister.bitbucket.tasks', 'swh.lister.cgit.tasks', 'swh.lister.cran.tasks', 'swh.lister.crates.tasks', 'swh.lister.debian.tasks', ...]
@pytest.fixture(scope="session")
def swh_scheduler_celery_worker(
swh_scheduler_celery_app, swh_scheduler_celery_includes,
):
"""Spawn a worker"""
for module in swh_scheduler_celery_includes:
> swh_scheduler_celery_app.loader.import_task_module(module)
.tox/py3/lib/python3.7/site-packages/swh/scheduler/pytest_plugin.py:109:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.7/site-packages/celery/loaders/base.py:86: in import_task_module
return self.import_from_cwd(module)
.tox/py3/lib/python3.7/site-packages/celery/loaders/base.py:95: in import_from_cwd
package=package,
.tox/py3/lib/python3.7/site-packages/celery/utils/imports.py:100: in import_from_cwd
return imp(module, package=package)
.tox/py3/lib/python3.7/site-packages/celery/loaders/base.py:89: in import_module
return importlib.import_module(module, package=package)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
name = 'swh.lister.crates.tasks', package = None
def import_module(name, package=None):
"""Import a module.
The 'package' argument is required when performing a relative import. It
specifies the package to use as the anchor point from which to resolve the
relative import to an absolute import.
"""
level = 0
if name.startswith('.'):
if not package:
msg = ("the 'package' argument is required to perform a relative "
"import for {!r}")
raise TypeError(msg.format(name))
for character in name:
if character != '.':
break
level += 1
> return _bootstrap._gcd_import(name[level:], package, level)
E ModuleNotFoundError: No module named 'swh.lister.crates.tasks'
/usr/lib/python3.7/importlib/__init__.py:127: ModuleNotFoundError
TEST RESULT
TEST RESULT
- Run At
- Mar 17 2022, 12:33 PM