Page MenuHomeSoftware Heritage

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

TEST RESULT

Run At
May 5 2022, 6:50 PM
Details
content = {'blake2s256': '634f25fe97e895b025dd59b9e561b3351c9cfecfbc9bc3d1be954a63407923c4', 'data': '/*\r\n** SGI FREE SOFTWARE...int tesedgeIsLocallyDelaunay( TESShalfEdge *e );\r\n\r\n#endif\r\n', 'encoding': 'us-ascii', 'hljs_language': 'c', ...} directory = '16025938cc940df75a37408a399408bfff6257af' def test_lookup_missing_hashes_some_present(content, directory): missing_rev = random_sha1_bytes() missing_rel = random_sha1_bytes() missing_snp = random_sha1_bytes() grouped_swhids = { ObjectType.CONTENT: [hash_to_bytes(content["sha1_git"])], ObjectType.DIRECTORY: [directory], ObjectType.REVISION: [missing_rev], ObjectType.RELEASE: [missing_rel], ObjectType.SNAPSHOT: [missing_snp], } actual_result = archive.lookup_missing_hashes(grouped_swhids) > assert actual_result == {missing_rev, missing_rel, missing_snp} E AssertionError: assert {b'\xc9qg\xb9...c2S\x0c\xeeW'} == {b'\x10\xaf\x...7\xf9y\xa4&M'} E Extra items in the left set: E '16025938cc940df75a37408a399408bfff6257af' E Full diff: E { E b'\x10\xaf\xfb\x1d\x9b\xa2O\xee\xdfn\x9cJ=\xd8\xae7\xd4\xda>!', E b'\x94 \xc8\xc4\xf4\xc3\xda!\x1c\xeb\xb4\xbd:^\xec\xc2S\x0c\xeeW', E b'\xc9qg\xb9\x0f\xcd\x1b\xe7\xef\xc7\x81\xf1\xc9\xb1\xb7\xf9y\xa4&M',... E E ...Full output truncated (3 lines hidden), use '-vv' to show .tox/py3/lib/python3.7/site-packages/swh/web/tests/common/test_archive.py:984: AssertionError