Page MenuHomeSoftware Heritage

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

TEST RESULT

Run At
Aug 27 2021, 12:11 PM
Details
self = <swh.storage.tests.test_tenacious.TestTenaciousStorage object at 0x7fd9ee2ed1d0> swh_storage = <swh.storage.proxies.tenacious.TenaciousProxyStorage object at 0x7fd9db993470> sample_data = <swh.storage.tests.storage_data.StorageData object at 0x7fd9d99369e8> def test_origin_add(self, swh_storage, sample_data): origins = list(sample_data.origins) origin_urls = [o.url for o in origins] assert swh_storage.origin_get(origin_urls) == [None] * len(origins) stats = swh_storage.origin_add(origins) assert stats == {"origin:add": len(origin_urls)} actual_origins = swh_storage.origin_get(origin_urls) assert actual_origins == origins assert set(swh_storage.journal_writer.journal.objects) == set( [("origin", origin) for origin in origins] ) if not isinstance(swh_storage, (CassandraStorage, RemoteStorage)): swh_storage.refresh_stat_counters() > assert swh_storage.stat_counters()["origin"] == len(origins) .tox/py3/lib/python3.7/site-packages/swh/storage/tests/storage_tests.py:1494: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <swh.storage.in_memory.InMemoryStorage object at 0x7fd9db9930b8> def stat_counters(self): > raise NotImplementedError() E NotImplementedError .tox/py3/lib/python3.7/site-packages/swh/storage/cassandra/storage.py:1293: NotImplementedError