Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.web.tests.common.test_archive::Tests / Python tests / test_lookup_missing_hashes_non_present
Failed

TEST RESULT

Run At
May 6 2022, 5:36 PM
Details
def test_lookup_missing_hashes_non_present(): missing_cnt = random_sha1_bytes() missing_dir = random_sha1_bytes() missing_rev = random_sha1_bytes() missing_rel = random_sha1_bytes() missing_snp = random_sha1_bytes() grouped_swhids = { ObjectType.CONTENT: [missing_cnt], ObjectType.DIRECTORY: [missing_dir], ObjectType.REVISION: [missing_rev], ObjectType.RELEASE: [missing_rel], ObjectType.SNAPSHOT: [missing_snp], } actual_result = archive.lookup_missing_hashes(grouped_swhids) > assert actual_result == { ObjectType.CONTENT: {missing_cnt}, ObjectType.DIRECTORY: {missing_dir}, ObjectType.REVISION: {missing_rev}, ObjectType.RELEASE: {missing_rel}, ObjectType.SNAPSHOT: {missing_snp}, } E assert {<ObjectType....EY\xf1"], ...} == {<ObjectType....EY\xf1"}, ...} E Differing items: E {<ObjectType.SNAPSHOT: 'snp'>: [b'8M\x11\x9e]\xc6\xbe\xf7\xafv?\x8f\xc8\xe3-/\x02eL2']} != {<ObjectType.SNAPSHOT: 'snp'>: {b'8M\x11\x9e]\xc6\xbe\xf7\xafv?\x8f\xc8\xe3-/\x02eL2'}} E {<ObjectType.DIRECTORY: 'dir'>: [b'o\xf4]\xa6Q\xe6\xe6j\xfft\xd7\x13\xfb\xb76\x9dl\xc0"g']} != {<ObjectType.DIRECTORY: 'dir'>: {b'o\xf4]\xa6Q\xe6\xe6j\xfft\xd7\x13\xfb\xb76\x9dl\xc0"g'}} E {<ObjectType.RELEASE: 'rel'>: [b"'\x890\x03\xc8\x02\x89\xeb6Dr\xba\xe3Skb}EY\xf1"]} != {<ObjectType.RELEASE: 'rel'>: {b"'\x890\x03\xc8\x02\x89\xeb6Dr\xba\xe3Skb}EY\xf1"}} E {<ObjectType.CONTENT: 'cnt... E E ...Full output truncated (40 lines hidden), use '-vv' to show .tox/py3/lib/python3.7/site-packages/swh/web/tests/common/test_archive.py:960: AssertionError