self = <swh.storage.tests.test_cassandra.TestCassandraStorage object at 0x7f4be0408cf8>
swh_storage = <swh.storage.validate.ValidatingProxyStorage object at 0x7f4be040a518>
def test_snapshot_add_many(self, swh_storage):
actual_result = swh_storage.snapshot_add(
[data.snapshot, data.complete_snapshot]
)
assert actual_result == {"snapshot:add": 2}
assert {
**data.complete_snapshot,
"next_branch": None,
} == swh_storage.snapshot_get(data.complete_snapshot["id"])
assert {**data.snapshot, "next_branch": None} == swh_storage.snapshot_get(
data.snapshot["id"]
)
swh_storage.refresh_stat_counters()
> assert swh_storage.stat_counters()["snapshot"] == 2
E assert 8 == 2
E +8
E -2
.tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_storage.py:2323: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Apr 9 2020, 3:28 PM