self = <swh.storage.tests.test_cassandra.TestCassandraStorage object at 0x7fd99447ce10>
swh_storage = <swh.storage.validate.ValidatingProxyStorage object at 0x7fd9945bff28>
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:2350: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Apr 21 2020, 12:34 PM