self = <swh.storage.tests.test_tenacious.TestTenaciousStorage object at 0x7fdc04afbda0>
swh_storage = <swh.storage.proxies.tenacious.TenaciousProxyStorage object at 0x7fdc04e68438>
sample_data = <swh.storage.tests.storage_data.StorageData object at 0x7fdae42abf60>
def test_snapshot_add_many(self, swh_storage, sample_data):
snapshot, _, complete_snapshot = sample_data.snapshots[:3]
actual_result = swh_storage.snapshot_add([snapshot, complete_snapshot])
assert actual_result == {"snapshot:add": 2}
assert swh_storage.snapshot_get(complete_snapshot.id) == {
**complete_snapshot.to_dict(),
"next_branch": None,
}
assert swh_storage.snapshot_get(snapshot.id) == {
**snapshot.to_dict(),
"next_branch": None,
}
if not isinstance(swh_storage, (CassandraStorage, RemoteStorage)):
swh_storage.refresh_stat_counters()
> assert swh_storage.stat_counters()["snapshot"] == 2
.tox/py3/lib/python3.7/site-packages/swh/storage/tests/storage_tests.py:3135:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <swh.storage.in_memory.InMemoryStorage object at 0x7fdc04e68da0>
def stat_counters(self):
> raise NotImplementedError()
E NotImplementedError
.tox/py3/lib/python3.7/site-packages/swh/storage/cassandra/storage.py:1293: NotImplementedError
TEST RESULT
TEST RESULT
- Run At
- Aug 27 2021, 12:11 PM