Page MenuHomeSoftware Heritage

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

TEST RESULT

Run At
Sep 3 2020, 3:28 PM
Details
self = <swh.storage.tests.test_cassandra.TestCassandraStorage object at 0x7f92802292b0> swh_storage = <swh.storage.cassandra.storage.CassandraStorage object at 0x7f9280033da0> sample_data = <swh.storage.tests.storage_data.StorageData object at 0x7f9278220710> 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, ...}] == [{'dir_id': b...: 33188, ...}] E At index 0 diff: {'status': 'absent', 'sha1': b'cccccccccccccccccccc', 'sha1_git': b'6\xfa\xdew\x19<\xb6\xd2\xbd\x82aa\xa0\x97\x9dd\xc2\x8a\xb4\xfa', 'sha256': b'<null>', 'length': 42, 'name': b'oof', 'type': 'file', 'target': b'6\xfa\xdew\x19<\xb6\xd2\xbd\x82aa\xa0\x97\x9dd\xc2\x8a\xb4\xfa', 'perms': 33188, 'dir_id': b'\x85\x05\x80\x852\x95=\xa7\xd2X\x17A\xf0\x1b)\xc0K\x1c\xb9\xab'} != {'dir_id': b'\x85\x05\x80\x852\x95=\xa7\xd2X\x17A\xf0\x1b)\xc0K\x1c\xb9\xab', 'length': 42, 'name': b'oof', 'perms': 33188, 'sha1': b'cccccccccccccccccccc', 'sha1_git': b'6\xfa\xdew\x19<... E E ...Full output truncated (15 lines hidden), use '-vv' to show .tox/py3/lib/python3.7/site-packages/swh/storage/tests/storage_tests.py:784: AssertionError