self = <swh.storage.tests.test_cassandra.TestCassandraStorage object at 0x7f6ff43f2b00>
swh_storage = <swh.storage.cassandra.storage.CassandraStorage object at 0x7f6ff43f2c88>
sample_data_model = {'authority': [MetadataAuthority(type=<MetadataAuthorityType.DEPOSIT_CLIENT: 'deposit_client'>, url='http://hal.inria....11', length=7, status='visible', data=b'424242\n', ctime=datetime.datetime(2019, 12, 1, 0, 0, tzinfo=tzlocal()))], ...}
def test_snapshot_add_many_from_generator(self, swh_storage, sample_data_model):
snapshot, _, complete_snapshot = sample_data_model["snapshot"][: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:2378: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Jul 21 2020, 10:35 AM