Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.storage.tests.test_in_memory.TestInMemoryStorage::test_directory_entry_get_by_path
Failed

TEST RESULT

Run At
Apr 29 2021, 10:23 AM
Details
self = <swh.storage.tests.test_in_memory.TestInMemoryStorage object at 0x7f39c0590160> swh_storage = <swh.storage.in_memory.InMemoryStorage object at 0x7f393c3aee10> sample_data = <swh.storage.tests.storage_data.StorageData object at 0x7f393c2610f0> def test_directory_entry_get_by_path(self, swh_storage, sample_data): cont, content2 = sample_data.contents[:2] dir1, dir2, dir3, dir4, dir5 = sample_data.directories[:5] # given dir_ids = [d.id for d in [dir1, dir2, dir3, dir4, dir5]] init_missing = list(swh_storage.directory_missing(dir_ids)) assert init_missing == dir_ids > actual_result = swh_storage.directory_add([dir3, dir4]) .tox/py3/lib/python3.7/site-packages/swh/storage/tests/storage_tests.py:847: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <swh.storage.in_memory.InMemoryStorage object at 0x7f393c3aee10> directories = [Directory(entries=(DirectoryEntry(name=b'foo', type='file', target=b'\xd8\x1c\xc0q\x0e\xb6\xcf\x9e\xfd[\x92\n\x84S\xe...r\xeehj', perms=<DentryPerms.directory: 16384>),), id=b'\xcd]\xfd\x9c\t\xd9\xe9\x9e\xd1#\xbcy7\xa0\xd5\xfd\xdc<\xd51')] def directory_add(self, directories: List[Directory]) -> Dict: to_add = {d.id: d for d in directories}.values() > if not self._allow_overwrite: E AttributeError: 'InMemoryStorage' object has no attribute '_allow_overwrite' .tox/py3/lib/python3.7/site-packages/swh/storage/cassandra/storage.py:400: AttributeError