Page MenuHomeSoftware Heritage

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

TEST RESULT

Run At
Jun 18 2021, 3:09 PM
Details
mocker = <pytest_mock.plugin.MockerFixture object at 0x7fca46a72198> visit_status = 'failed' @pytest.mark.django_db @pytest.mark.parametrize("visit_status", ["not_found", "failed",]) def test_get_save_origin_requests_no_failed_status_override(mocker, visit_status): """Uneventful visits with failed statuses (failed, not found) are marked as failed """ sors = _get_save_origin_requests( mocker, load_status="uneventful", visit_status=visit_status ) assert len(sors) == 1 assert sors[0]["save_task_status"] == SAVE_TASK_FAILED visit_date = sors[0]["visit_date"] if visit_status == "failed": > assert visit_date is None E AssertionError: assert '2021-06-18T13:02:06.628395+00:00' is None .tox/py3/lib/python3.7/site-packages/swh/web/tests/common/test_origin_save.py:501: AssertionError