Page MenuHomeSoftware Heritage

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

TEST RESULT

Run At
Aug 26 2021, 11:17 AM
Details
self = <swh.storage.tests.test_tenacious.TestTenaciousStorage object at 0x7fb783a5fb00> swh_storage = <swh.storage.proxies.tenacious.TenaciousProxyStorage object at 0x7fb77c5cc8d0> sample_data = <swh.storage.tests.storage_data.StorageData object at 0x7fb789f08b70> def test_directory_ls_skipped_content(self, swh_storage, sample_data): swh_storage.directory_add([sample_data.directory2]) cont = SkippedContent( sha1_git=sample_data.directory2.entries[0].target, sha1=b"c" * 20, sha256=None, blake2s256=None, length=42, status="absent", reason="You need a premium subscription to access this content", ) swh_storage.skipped_content_add([cont]) > assert list(swh_storage.directory_ls(sample_data.directory2.id)) == [ { "dir_id": sample_data.directory2.id, "length": 42, "name": b"oof", "perms": 33188, "sha1": b"c" * 20, "sha1_git": sample_data.directory2.entries[0].target, "sha256": None, "status": "absent", "target": sample_data.directory2.entries[0].target, "type": "file", }, ] E AssertionError: assert [] == [{'dir_id': b...: 33188, ...}] E Right contains one more item: {'dir_id': b'\x85\x05\x80\x852\x95=\xa7\xd2X\x17A\xf0\x1b)\xc0K\x1c\xb9\xab', 'length': 42, 'name': b'oof', 'perms': 33188, ...} E Full diff: E [ E + , E - {'dir_id': b'\x85\x05\x80\x852\x95=\xa7\xd2X\x17A\xf0\x1b)\xc0K\x1c\xb9\xab', E - 'length': 42, E - 'name': b'oof',... E E ...Full output truncated (9 lines hidden), use '-vv' to show .tox/py3/lib/python3.7/site-packages/swh/storage/tests/storage_tests.py:829: AssertionError