Changeset View
Changeset View
Standalone View
Standalone View
swh/search/tests/test_journal_client.py
Show First 20 Lines • Show All 233 Lines • ▼ Show 20 Lines | worker_fn( | ||||
} | } | ||||
) | ) | ||||
search_mock.origin_update.assert_called_once_with( | search_mock.origin_update.assert_called_once_with( | ||||
[ | [ | ||||
{ | { | ||||
"url": "http://foobar.baz", | "url": "http://foobar.baz", | ||||
"has_visits": True, | "has_visits": True, | ||||
"nb_visits": 5, | "nb_visits": 5, | ||||
"snapshot_id": SNAPSHOTS[0].id, | "snapshot_id": SNAPSHOTS[0].id.hex(), | ||||
"last_visit_date": current_datetime.isoformat(), | "last_visit_date": current_datetime.isoformat(), | ||||
"last_eventful_visit_date": current_datetime.isoformat(), | "last_eventful_visit_date": current_datetime.isoformat(), | ||||
"last_revision_date": "2009-02-14T01:31:33+02:00", | "last_revision_date": "2009-02-14T01:31:33+02:00", | ||||
"last_release_date": "2009-02-14T01:31:34+02:00", | "last_release_date": "2009-02-14T01:31:34+02:00", | ||||
}, | }, | ||||
] | ] | ||||
) | ) | ||||
▲ Show 20 Lines • Show All 56 Lines • Show Last 20 Lines |