Page MenuHomeSoftware Heritage

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

TEST RESULT

Run At
Jul 1 2021, 12:37 PM
Details
swh_scheduler = <swh.scheduler.backend.SchedulerBackend object at 0x7f48f8ea9470> def test_journal_client_origin_visit_status_from_journal_last_failed(swh_scheduler): visit_statuses = [ { "origin": "foo", "visit": 1, "status": "partial", "date": utcnow(), "type": "git", "snapshot": None, }, { "origin": "bar", "visit": 1, "status": "full", "date": DATE1, "type": "git", "snapshot": None, }, { "origin": "bar", "visit": 2, "status": "full", "date": DATE2, "type": "git", "snapshot": None, }, { "origin": "bar", "visit": 3, "status": "full", "date": DATE3, "type": "git", "snapshot": None, }, ] process_journal_objects( {"origin_visit_status": visit_statuses}, scheduler=swh_scheduler ) actual_origin_visit_stats = swh_scheduler.origin_visit_stats_get([("bar", "git")]) > assert actual_origin_visit_stats == [ OriginVisitStats( url="bar", visit_type="git", last_eventful=None, last_uneventful=None, last_failed=DATE3, last_notfound=None, last_snapshot=None, next_visit_queue_position=None, next_position_offset=7, ) ] E AssertionError: assert [OriginVisitS...ion_offset=7)] == [OriginVisitS...ion_offset=7)] E At index 0 diff: OriginVisitStats(url='bar', visit_type='git', last_eventful=None, last_uneventful=None, last_failed=datetime.datetime(2021, 7, 1, 10, 36, 3, 962269, tzinfo=datetime.timezone.utc), last_notfound=None, last_scheduled=None, last_snapshot=None, next_visit_queue_position=datetime.datetime(2021, 9, 18, 10, 37, 1, 923171, tzinfo=datetime.timezone.utc), next_position_offset=7) != OriginVisitStats(url='bar', visit_type='git', last_eventful=None, last_uneventful=None, last_failed=datetime.datetime(2021, 7, 1, 10, 36, 3, 962269, tzinfo=datetime.timezone.utc), last... E E ...Full output truncated (6 lines hidden), use '-vv' to show .tox/py3/lib/python3.7/site-packages/swh/scheduler/tests/test_journal_client.py:239: AssertionError