Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.storage.tests.test_tenacious.TestTenaciousStorage::test_origin_visit_status_get_random
Failed

TEST RESULT

Run At
Aug 27 2021, 12:11 PM
Details
self = <swh.storage.tests.test_tenacious.TestTenaciousStorage object at 0x7fd9d7821a90> swh_storage = <swh.storage.proxies.tenacious.TenaciousProxyStorage object at 0x7fd9d7821eb8> sample_data = <swh.storage.tests.storage_data.StorageData object at 0x7fda02936400> def test_origin_visit_status_get_random(self, swh_storage, sample_data): origins = sample_data.origins[:2] swh_storage.origin_add(origins) # Add some random visits within the selection range visits = self._generate_random_visits() visit_type = "git" # Add visits to those origins for origin in origins: for date_visit in visits: visit = swh_storage.origin_visit_add( [OriginVisit(origin=origin.url, date=date_visit, type=visit_type,)] )[0] swh_storage.origin_visit_status_add( [ OriginVisitStatus( origin=origin.url, visit=visit.visit, date=now(), status="full", snapshot=None, ) ] ) if not isinstance(swh_storage, (CassandraStorage, RemoteStorage)): swh_storage.refresh_stat_counters() > stats = swh_storage.stat_counters() .tox/py3/lib/python3.7/site-packages/swh/storage/tests/storage_tests.py:1934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <swh.storage.in_memory.InMemoryStorage object at 0x7fd9d7821e80> def stat_counters(self): > raise NotImplementedError() E NotImplementedError .tox/py3/lib/python3.7/site-packages/swh/storage/cassandra/storage.py:1293: NotImplementedError