self = <swh.storage.tests.test_storage.TestStorage object at 0x7f90526554e0>
swh_storage = <swh.storage.storage.Storage object at 0x7f90525bdb70>
sample_data = <swh.storage.tests.storage_data.StorageData object at 0x7f90514c9438>
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}
swh_storage.refresh_stat_counters()
> assert swh_storage.stat_counters()["revision"] == 1
E assert 0 == 1
E +0
E -1
.tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_storage.py:894: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Jul 29 2020, 10:41 AM