Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.loader.package.puppet.tests.test_tasks::test_tasks_cpan_loader
Failed

TEST RESULT

Run At
Sep 29 2022, 10:09 AM
Details
thing = <module 'swh.loader.package' from '/var/lib/jenkins/workspace/DLDBASE/tests-on-diff/.tox/py3/lib/python3.7/site-packages/swh/loader/package/__init__.py'> comp = 'cpan', import_path = 'swh.loader.package.cpan' def _dot_lookup(thing, comp, import_path): try: > return getattr(thing, comp) E AttributeError: module 'swh.loader.package' has no attribute 'cpan' /usr/lib/python3.7/unittest/mock.py:1096: AttributeError During handling of the above exception, another exception occurred: mocker = <pytest_mock.plugin.MockerFixture object at 0x7fcf4e58e908> swh_scheduler_celery_app = <Celery celery.tests at 0x7fcf550b50f0> swh_scheduler_celery_worker = <Worker: gen479@974e5c156bc8 (running)> swh_config = '/tmp/pytest-of-jenkins/pytest-0/test_tasks_cpan_loader0/loader.yml' def test_tasks_cpan_loader( mocker, swh_scheduler_celery_app, swh_scheduler_celery_worker, swh_config ): > mock_load = mocker.patch("swh.loader.package.cpan.loader.CpanLoader.load") .tox/py3/lib/python3.7/site-packages/swh/loader/package/puppet/tests/test_tasks.py:10: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.7/site-packages/pytest_mock/plugin.py:403: in __call__ **kwargs .tox/py3/lib/python3.7/site-packages/pytest_mock/plugin.py:202: in _start_patch mocked = p.start() # type: unittest.mock.MagicMock /usr/lib/python3.7/unittest/mock.py:1399: in start result = self.__enter__() /usr/lib/python3.7/unittest/mock.py:1252: in __enter__ self.target = self.getter() /usr/lib/python3.7/unittest/mock.py:1422: in <lambda> getter = lambda: _importer(target) /usr/lib/python3.7/unittest/mock.py:1109: in _importer thing = _dot_lookup(thing, comp, import_path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ thing = <module 'swh.loader.package' from '/var/lib/jenkins/workspace/DLDBASE/tests-on-diff/.tox/py3/lib/python3.7/site-packages/swh/loader/package/__init__.py'> comp = 'cpan', import_path = 'swh.loader.package.cpan' def _dot_lookup(thing, comp, import_path): try: return getattr(thing, comp) except AttributeError: > __import__(import_path) E ModuleNotFoundError: No module named 'swh.loader.package.cpan' /usr/lib/python3.7/unittest/mock.py:1098: ModuleNotFoundError