self = <swh.storage.tests.test_tenacious.TestTenaciousStorage object at 0x7fb96cd346a0>
swh_storage = <swh.storage.proxies.tenacious.TenaciousProxyStorage object at 0x7fb763564588>
sample_data = <swh.storage.tests.storage_data.StorageData object at 0x7fb7992c8f28>
limit = 2
@pytest.mark.parametrize("limit", [1, 2, 3, 4, 5])
def test_directory_get_entries(self, swh_storage, sample_data, limit):
dir_ = sample_data.directory3
swh_storage.directory_add(sample_data.directories)
actual_data = list(
> stream_results(swh_storage.directory_get_entries, dir_.id, limit=limit,)
)
.tox/py3/lib/python3.7/site-packages/swh/storage/tests/storage_tests.py:945:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.7/site-packages/swh/core/api/classes.py:40: in stream_results
yield from _stream_results(f, *args, page_token=None, **kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
f = <bound method CassandraStorage.directory_get_entries of <swh.storage.in_memory.InMemoryStorage object at 0x7fb763564ac8>>
page_token = None
args = (b'\x13\x08\x9enTOx\xdf|\x9a@\xa3\x05\x90P\xd1\r\xeehj',)
kwargs = {'limit': 2}, page_result = None
def _stream_results(f, *args, page_token, **kwargs):
"""Helper for stream_results() and stream_results_optional()"""
while True:
page_result = f(*args, page_token=page_token, **kwargs)
> yield from page_result.results
E AttributeError: 'NoneType' object has no attribute 'results'
.tox/py3/lib/python3.7/site-packages/swh/core/api/classes.py:26: AttributeError
TEST RESULT
TEST RESULT
- Run At
- Aug 26 2021, 11:17 AM