self = <swh.storage.tests.test_in_memory.TestInMemoryStorage object at 0x7f3870a7dc18>
swh_storage = <swh.storage.in_memory.InMemoryStorage object at 0x7f3870a7d978>
sample_data = <swh.storage.tests.storage_data.StorageData object at 0x7f385897b358>
def test_directory_get_random(self, swh_storage, sample_data):
dir1, dir2, dir3 = sample_data.directories[:3]
> swh_storage.directory_add([dir1, dir2, dir3])
.tox/py3/lib/python3.7/site-packages/swh/storage/tests/storage_tests.py:914:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <swh.storage.in_memory.InMemoryStorage object at 0x7f3870a7d978>
directories = [Directory(entries=(DirectoryEntry(name=b'oof', type='file', target=b'6\xfa\xdew\x19<\xb6\xd2\xbd\x82aa\xa0\x97\x9dd\x...9dd\xc2\x8a\xb4\xfa', perms=<DentryPerms.content: 33188>)), id=b'\x13\x08\x9enTOx\xdf|\x9a@\xa3\x05\x90P\xd1\r\xeehj')]
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
TEST RESULT
TEST RESULT
- Run At
- Apr 29 2021, 10:23 AM