Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.storage.tests.test_cassandra.TestCassandraStorage::test_origin_visit_status_get_all
Failed

TEST RESULT

Run At
Jul 29 2020, 6:01 PM
Details
self = <swh.storage.tests.test_cassandra.TestCassandraStorage object at 0x7fc70072c6d8> swh_storage = <swh.storage.cassandra.storage.CassandraStorage object at 0x7fc700537668> sample_data = <swh.storage.tests.storage_data.StorageData object at 0x7fc70058a2e8> def test_origin_visit_status_get_all(self, swh_storage, sample_data): origin = sample_data.origin swh_storage.origin_add([origin]) date_visit3 = round_to_milliseconds(now()) date_visit1 = date_visit3 - datetime.timedelta(hours=2) date_visit2 = date_visit3 - datetime.timedelta(hours=1) assert date_visit1 < date_visit2 assert date_visit2 < date_visit3 ov1 = swh_storage.origin_visit_add( [ OriginVisit( origin=origin.url, date=date_visit1, type=sample_data.type_visit1, ), ] )[0] ovs1 = OriginVisitStatus( origin=origin.url, visit=ov1.visit, date=date_visit1, status="created", snapshot=None, ) ovs2 = OriginVisitStatus( origin=origin.url, visit=ov1.visit, date=date_visit2, status="partial", snapshot=None, ) ovs3 = OriginVisitStatus( origin=origin.url, visit=ov1.visit, date=date_visit3, status="full", snapshot=sample_data.snapshot.id, metadata={}, ) swh_storage.origin_visit_status_add([ovs2, ovs3]) # order asc, no token, no limit > actual_page = swh_storage.origin_visit_status_get(origin.url, ov1.visit) E AttributeError: 'CassandraStorage' object has no attribute 'origin_visit_status_get' .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_storage.py:1395: AttributeError