self = <swh.storage.tests.test_api_client.TestStorageApi object at 0x7f4c7b3649e8>
swh_storage = <RemoteStorage url=mock://example.com/>
@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 StorageInterface.directory_get_entries of <RemoteStorage url=mock://example.com/>>
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