self = <swh.storage.tests.test_cassandra.TestCassandraStorage object at 0x7f14843693c8>
swh_storage = <swh.storage.validate.ValidatingProxyStorage object at 0x7f1484358940>
def test_directory_add_from_generator(self, swh_storage):
def _dir_gen():
yield data.dir
actual_result = swh_storage.directory_add(directories=_dir_gen())
assert actual_result == {"directory:add": 1}
assert list(swh_storage.journal_writer.journal.objects) == [
("directory", Directory.from_dict(data.dir))
]
swh_storage.refresh_stat_counters()
> assert swh_storage.stat_counters()["directory"] == 1
E assert 2 == 1
E +2
E -1
.tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_storage.py:741: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Apr 21 2020, 2:18 PM