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 22 2021, 8:33 PM
Details
self = <swh.storage.tests.test_in_memory.TestInMemoryStorage object at 0x7fb6438f6320> swh_storage = <swh.storage.in_memory.InMemoryStorage object at 0x7fb6438f69b0> sample_data = <swh.storage.tests.storage_data.StorageData object at 0x7fb64744d668> 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 0x7fb6438f69b0> directories = [Directory(entries=(DirectoryEntry(name=b'foo', type='file', target=b'\xd8\x1c\xc0q\x0e\xb6\xcf\x9e\xfd[\x92\n\x84S\xe...6o1P', perms=<DentryPerms.directory: 16384>),), id=b'7z\xa5\xfc\xd9D\xfb\xab\xf5\x02\xdb\xfd\xa5\\\xd1M3\xc8\xc3\xc6')] def directory_add(self, directories: List[Directory]) -> Dict: to_add = {d.id: d for d in directories}.values() > if self._check_missing: E AttributeError: 'InMemoryStorage' object has no attribute '_check_missing' .tox/py3/lib/python3.7/site-packages/swh/storage/cassandra/storage.py:397: AttributeError