Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.web.tests.common.test_origin_save::Tests / Python tests / test_get_visit_info_incomplete_visit_still_successful[uneventful]
Failed

TEST RESULT

Run At
Feb 3 2022, 6:35 PM
Details
mocker = <pytest_mock.plugin.MockerFixture object at 0x7f4b18e859b0> swh_scheduler = <swh.scheduler.backend.SchedulerBackend object at 0x7f4b18e855f8> load_status = 'uneventful' @pytest.mark.django_db @pytest.mark.parametrize("load_status", ["eventful", "uneventful",]) def test_get_visit_info_incomplete_visit_still_successful( mocker, swh_scheduler, load_status ): """Incomplete visit information, yet the task is updated partially """ sors = _get_save_origin_requests( > mocker, swh_scheduler, load_status=load_status, visit_status=None, ) .tox/py3/lib/python3.7/site-packages/swh/web/tests/common/test_origin_save.py:543: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.7/site-packages/swh/web/tests/common/test_origin_save.py:296: in _get_save_origin_requests "swh.web.common.origin_save.get_origin_visits" .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:1268: in __enter__ original, local = self.get_original() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <unittest.mock._patch object at 0x7f4b193d6f98> def get_original(self): target = self.getter() name = self.attribute original = DEFAULT local = False try: original = target.__dict__[name] except (AttributeError, KeyError): original = getattr(target, name, DEFAULT) else: local = True if name in _builtins and isinstance(target, ModuleType): self.create = True if not self.create and original is DEFAULT: raise AttributeError( > "%s does not have the attribute %r" % (target, name) ) E AttributeError: <module 'swh.web.common.origin_save' from '/var/lib/jenkins/workspace/DWAPPS/tests-on-diff@2/.tox/py3/lib/python3.7/site-packages/swh/web/common/origin_save.py'> does not have the attribute 'get_origin_visits' /usr/lib/python3.7/unittest/mock.py:1242: AttributeError