@pytest.fixture(scope="session")
def swh_scheduler_celery_app():
"""Set up a Celery app as swh.scheduler and swh worker tests would expect it"""
test_app = TestApp(
set_as_current=True,
enable_logging=True,
task_cls="swh.scheduler.task:SWHTask",
config={
"accept_content": ["application/x-msgpack", "application/json"],
"broker_url": "memory://guest@localhost//",
"task_serializer": "msgpack",
"result_serializer": "json",
},
)
with setup_default_app(test_app, use_trap=False):
> from swh.scheduler.celery_backend import config
.tox/py3/lib/python3.7/site-packages/swh/scheduler/pytest_plugin.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.7/site-packages/swh/scheduler/celery_backend/config.py:290: in <module>
worker_registrer_fn = entrypoint.load()
.tox/py3/lib/python3.7/site-packages/pkg_resources/__init__.py:2471: in load
return self.resolve()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = EntryPoint.parse('loader.rubygems = swh.loader.package.ruby:register')
def resolve(self):
"""
Resolve the entry point from its module and attrs.
"""
> module = __import__(self.module_name, fromlist=['__name__'], level=0)
E ModuleNotFoundError: No module named 'swh.loader.package.ruby'
.tox/py3/lib/python3.7/site-packages/pkg_resources/__init__.py:2477: ModuleNotFoundError
TEST RESULT
TEST RESULT
- Run At
- Sep 28 2022, 6:25 PM