Page MenuHomeSoftware Heritage

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

TEST RESULT

Run At
Sep 9 2021, 3:38 PM
Details
self = <swh.storage.tests.test_tenacious.TestTenaciousStorage object at 0x7f6bb2b937b8> swh_storage = <swh.storage.proxies.tenacious.TenaciousProxyStorage object at 0x7f6bb2b93208> sample_data = <swh.storage.tests.storage_data.StorageData object at 0x7f6be4b08cf8> def test_object_find_by_sha1_git(self, swh_storage, sample_data): content = sample_data.content directory = sample_data.directory revision = sample_data.revision release = sample_data.release sha1_gits = [b"00000000000000000000"] expected = { b"00000000000000000000": [], } swh_storage.content_add([content]) sha1_gits.append(content.sha1_git) expected[content.sha1_git] = [ {"sha1_git": content.sha1_git, "type": "content",} ] swh_storage.directory_add([directory]) sha1_gits.append(directory.id) expected[directory.id] = [{"sha1_git": directory.id, "type": "directory",}] swh_storage.revision_add([revision]) sha1_gits.append(revision.id) expected[revision.id] = [{"sha1_git": revision.id, "type": "revision",}] swh_storage.release_add([release]) sha1_gits.append(release.id) expected[release.id] = [{"sha1_git": release.id, "type": "release",}] ret = swh_storage.object_find_by_sha1_git(sha1_gits) > assert expected == ret E AssertionError: assert {b'\x01\xa7\x...ntent'}], ...} == {b'\x01\xa7\x...xcd': [], ...} E Omitting 4 identical items, use -vv to show E Differing items: E {b'\xd8\x1c\xc0q\x0e\xb6\xcf\x9e\xfd[\x92\n\x84S\xe1\xe0qW\xb6\xcd': [{'sha1_git': b'\xd8\x1c\xc0q\x0e\xb6\xcf\x9e\xfd[\x92\n\x84S\xe1\xe0qW\xb6\xcd', 'type': 'content'}]} != {b'\xd8\x1c\xc0q\x0e\xb6\xcf\x9e\xfd[\x92\n\x84S\xe1\xe0qW\xb6\xcd': []} E Full diff: E { E b'\x01\xa7\x11O6\xfd\xdd^\xf2Q\x1b,\xad\xda#zh\xad\xbb\x12': [{'sha1_git': b'\x01\xa7\x11O' E b'6\xfd\xdd^'... E E ...Full output truncated (28 lines hidden), use '-vv' to show .tox/py3/lib/python3.7/site-packages/swh/storage/tests/storage_tests.py:3931: AssertionError