self = <swh.storage.tests.test_cassandra.TestCassandraStorage object at 0x7f14444eba58>
swh_storage = <swh.storage.validate.ValidatingProxyStorage object at 0x7f1444492b70>
def test_release_add_from_generator(self, swh_storage):
def _rel_gen():
yield data.release
yield data.release2
actual_result = swh_storage.release_add(_rel_gen())
assert actual_result == {"release:add": 2}
assert list(swh_storage.journal_writer.journal.objects) == [
("release", Release.from_dict(data.release)),
("release", Release.from_dict(data.release2)),
]
swh_storage.refresh_stat_counters()
> assert swh_storage.stat_counters()["release"] == 2
E assert 4 == 2
E +4
E -2
.tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_storage.py:1159: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Apr 21 2020, 2:18 PM