mocker = <pytest_mock.plugin.MockerFixture object at 0x7fd316d57208>
load_status = 'eventful'
@pytest.mark.django_db
@pytest.mark.parametrize("load_status", ["eventful", "uneventful",])
def test_get_visit_info_incomplete_visit_still_successful(mocker, load_status):
"""Incomplete visit information, yet the task is considered ok
"""
sors = _get_save_origin_requests(
mocker, load_status=load_status, visit_status=None,
)
assert len(sors) == 1
assert sors[0]["save_task_status"] == SAVE_TASK_SUCCEEDED
assert sors[0]["visit_date"] is None
assert sors[0]["visit_status"] is None
# nothing to refresh so nothing to return
> assert len(refresh_save_origin_request_statuses()) == 0
E assert 1 == 0
E +1
E -0
.tox/py3/lib/python3.7/site-packages/swh/web/tests/common/test_origin_save.py:518: AssertionError
TEST RESULT
TEST RESULT
- Run At
- May 27 2021, 12:04 PM