Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.storage.tests.test_tenacious.TestTenaciousStorage::test_directory_get_entries_pagination
Failed

TEST RESULT

Run At
Aug 26 2021, 11:17 AM
Details
self = <swh.storage.tests.test_tenacious.TestTenaciousStorage object at 0x7fb778a955f8> swh_storage = <swh.storage.proxies.tenacious.TenaciousProxyStorage object at 0x7fb783a8d198> sample_data = <swh.storage.tests.storage_data.StorageData object at 0x7fb79c591b38> def test_directory_get_entries_pagination(self, swh_storage, sample_data): # Note: this test assumes entries are returned in lexicographic order, # which is not actually guaranteed by the interface. dir_ = sample_data.directory3 entries = sorted(dir_.entries, key=lambda entry: entry.name) swh_storage.directory_add(sample_data.directories) # No pagination needed actual_data = swh_storage.directory_get_entries(dir_.id) > assert actual_data == PagedResult(results=entries, next_page_token=None) E AssertionError: assert None == PagedResult(r...ge_token=None) E +None E -PagedResult(results=[DirectoryEntry(name=b'foo', type='file', target=b'\xd8\x1c\xc0q\x0e\xb6\xcf\x9e\xfd[\x92\n\x84S\xe1\xe0qW\xb6\xcd', perms=<DentryPerms.content: 33188>), DirectoryEntry(name=b'hello', type='file', target=b'6\xfa\xdew\x19<\xb6\xd2\xbd\x82aa\xa0\x97\x9dd\xc2\x8a\xb4\xfa', perms=<DentryPerms.content: 33188>), DirectoryEntry(name=b'subdir', type='dir', target=b'RV\xe8V\xa0\xa0\x89\x89f\xd6\xba\x14\xfe\xb48\x8b\x8b\x82\xd3\x02', perms=<DentryPerms.directory: 16384>)], next_page_token=None) .tox/py3/lib/python3.7/site-packages/swh/storage/tests/storage_tests.py:927: AssertionError