self = <swh.storage.tests.test_cassandra.TestCassandraStorage object at 0x7f91b07077f0>
swh_storage = <swh.storage.cassandra.storage.CassandraStorage object at 0x7f91b07036a0>
sample_data = <swh.storage.tests.storage_data.StorageData object at 0x7f91d007a748>
def test_revision_add_from_generator(self, swh_storage, sample_data):
revision = sample_data.revision
def _rev_gen():
yield revision
actual_result = swh_storage.revision_add(_rev_gen())
> assert actual_result == {"revision:add": 1}
E AssertionError: assert {'revision:add': 0} == {'revision:add': 1}
E Differing items:
E {'revision:add': 0} != {'revision:add': 1}
E Full diff:
E - {'revision:add': 1}
E ? ^
E + {'revision:add': 0}
E ? ^
.tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_storage.py:891: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Jul 29 2020, 10:41 AM