self = <swh.storage.tests.test_cassandra.TestCassandraStorage object at 0x7f4178361390>
swh_storage = <swh.storage.cassandra.storage.CassandraStorage object at 0x7f41787bf898>
sample_data = <swh.storage.tests.storage_data.StorageData object at 0x7f415813eac8>
def test_snapshot_add_many_from_generator(self, swh_storage, sample_data):
snapshot, _, complete_snapshot = sample_data.snapshots[:3]
def _snp_gen():
yield from [snapshot, complete_snapshot]
actual_result = swh_storage.snapshot_add(_snp_gen())
> assert actual_result == {"snapshot:add": 2}
E AssertionError: assert {'snapshot:add': 0} == {'snapshot:add': 2}
E Differing items:
E {'snapshot:add': 0} != {'snapshot:add': 2}
E Full diff:
E - {'snapshot:add': 2}
E ? ^
E + {'snapshot:add': 0}
E ? ^
.tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_storage.py:2387: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Jul 29 2020, 10:34 AM