self = <swh.storage.tests.test_tenacious.TestTenaciousStorage object at 0x7f4c7a73f5f8>
swh_storage = <swh.storage.proxies.tenacious.TenaciousProxyStorage object at 0x7f4a256f1f28>
@settings(
> suppress_health_check=[HealthCheck.too_slow, HealthCheck.data_too_large]
+ function_scoped_fixture_check,
)
.tox/py3/lib/python3.7/site-packages/swh/storage/tests/storage_tests.py:771:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.7/site-packages/swh/storage/tests/storage_tests.py:782: in test_directory_add_get_arbitrary
swh_storage.directory_get_entries, directory.id
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
storage = <bound method CassandraStorage.directory_get_entries of <swh.storage.in_memory.InMemoryStorage object at 0x7f4a256f1e48>>
directory_id = b'\xb8\x91\x1c\xaa\xa5y}\\\xfd\xfc\x11\xeb)M\xfa\xe6k^\x06\x1d'
def directory_get_all_entries(
storage: StorageInterface, directory_id: Sha1Git
) -> Optional[Directory]:
"""Get all the entries for a given directory
Args:
storage (swh.storage.interface.StorageInterface): the storage instance
directory_id (bytes): the directory's identifier
Returns:
The directory if it could be properly put back together.
"""
entries: Optional[Iterable[DirectoryEntry]] = stream_results_optional(
> storage.directory_get_entries,
directory_id=directory_id,
)
E AttributeError: 'function' object has no attribute 'directory_get_entries'
.tox/py3/lib/python3.7/site-packages/swh/storage/algos/directory.py:29: AttributeError
TEST RESULT
TEST RESULT
- Run At
- May 1 2022, 8:12 PM