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_visit_date_found[ongoing]
Failed

TEST RESULT

Run At
Jun 18 2021, 3:09 PM
Details
mocker = <pytest_mock.plugin.MockerFixture object at 0x7fca4615a0b8> visit_status = 'ongoing' @pytest.mark.django_db @pytest.mark.parametrize("visit_status", ["created", "ongoing",]) def test_get_save_origin_requests_no_visit_date_found(mocker, visit_status): """Uneventful visits with failed visit status are marked as failed """ sors = _get_save_origin_requests( mocker, load_status="scheduled", visit_status=visit_status, ) # check no visit date has been found assert len(sors) == 1 assert sors[0]["save_task_status"] == SAVE_TASK_RUNNING > assert sors[0]["visit_date"] is None E AssertionError: assert '2021-06-18T13:02:06.597800+00:00' is None .tox/py3/lib/python3.7/site-packages/swh/web/tests/common/test_origin_save.py:483: AssertionError