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_notfound
Failed

TEST RESULT

Run At
Jun 30 2021, 10:09 AM
Details
swh_scheduler = <swh.scheduler.backend.SchedulerBackend object at 0x7f4f1a8bd128> def test_journal_client_origin_visit_status_from_journal_last_notfound(swh_scheduler): visit_status = { "origin": "foo", "visit": 1, "status": "not_found", "date": DATE1, "type": "git", "snapshot": None, } process_journal_objects( {"origin_visit_status": [visit_status]}, scheduler=swh_scheduler ) actual_origin_visit_stats = swh_scheduler.origin_visit_stats_get([("foo", "git")]) > assert actual_origin_visit_stats == [ OriginVisitStats( url="foo", visit_type="git", last_eventful=None, last_uneventful=None, last_failed=None, last_notfound=visit_status["date"], last_snapshot=None, next_visit_queue_position=None, next_position_offset=5, ) ] E AssertionError: assert [OriginVisitS...ion_offset=5)] == [OriginVisitS...ion_offset=5)] E At index 0 diff: OriginVisitStats(url='foo', visit_type='git', last_eventful=None, last_uneventful=None, last_failed=None, last_notfound=datetime.datetime(2021, 6, 28, 8, 7, 44, 578859, tzinfo=datetime.timezone.utc), last_scheduled=None, last_snapshot=None, next_visit_queue_position=datetime.datetime(2021, 7, 4, 4, 18, 18, 972698, tzinfo=datetime.timezone.utc), next_position_offset=5) != OriginVisitStats(url='foo', visit_type='git', last_eventful=None, last_uneventful=None, last_failed=None, last_notfound=datetime.datetime(2021, 6, 28, 8, 7, 44, 578859, tzinfo=datetime.... 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:145: AssertionError