Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.scheduler.tests.test_recurrent_visits::test_recurrent_visit_scheduling
Failed

TEST RESULT

Run At
Oct 25 2021, 7:07 PM
Details
thing = <module 'swh.scheduler.celery_backend' from '/var/lib/jenkins/workspace/DSCH/tests-on-diff/.tox/py3/lib/python3.7/site-packages/swh/scheduler/celery_backend/__init__.py'> comp = 'orchestrator', import_path = 'swh.scheduler.celery_backend.orchestrator' def _dot_lookup(thing, comp, import_path): try: > return getattr(thing, comp) E AttributeError: module 'swh.scheduler.celery_backend' has no attribute 'orchestrator' /usr/lib/python3.7/unittest/mock.py:1096: AttributeError During handling of the above exception, another exception occurred: swh_scheduler = <swh.scheduler.backend.SchedulerBackend object at 0x7fc1528dc7b8> caplog = <_pytest.logging.LogCaptureFixture object at 0x7fc1528e6630> listed_origins_by_type = {'git': [ListedOrigin(lister_id=UUID('9b9faf7f-b9e1-4485-8f4d-11ea7195ed4c'), url='https://git.example.com/0000', visi...etime(2020, 6, 15, 16, 0, 0, 1005, tzinfo=datetime.timezone.utc), enabled=True, first_seen=None, last_seen=None), ...]} mocker = <pytest_mock.plugin.MockerFixture object at 0x7fc131cd6048> def test_recurrent_visit_scheduling( swh_scheduler, caplog, listed_origins_by_type, mocker, ): """Orchestrator schedules known tasks.""" caplog.set_level(logging.INFO, "swh.scheduler.celery_backend.orchestrator") nb_origins = 1000 mock_celery_app = MagicMock() mock_available_slots = mocker.patch( > "swh.scheduler.celery_backend.orchestrator.get_available_slots" ) .tox/py3/lib/python3.7/site-packages/swh/scheduler/tests/test_recurrent_visits.py:81: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.7/site-packages/pytest_mock/plugin.py:384: in __call__ **kwargs .tox/py3/lib/python3.7/site-packages/pytest_mock/plugin.py:183: 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.scheduler.celery_backend' from '/var/lib/jenkins/workspace/DSCH/tests-on-diff/.tox/py3/lib/python3.7/site-packages/swh/scheduler/celery_backend/__init__.py'> comp = 'orchestrator', import_path = 'swh.scheduler.celery_backend.orchestrator' def _dot_lookup(thing, comp, import_path): try: return getattr(thing, comp) except AttributeError: > __import__(import_path) E ModuleNotFoundError: No module named 'swh.scheduler.celery_backend.orchestrator' /usr/lib/python3.7/unittest/mock.py:1098: ModuleNotFoundError