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, 7:40 PM
Details
content = {'blake2s256': 'b2bc63e7c3580338cbe00d9e0797b397aea3acd56ab35c29ab56b0fd87aace56', 'data': b'P1\n# PBM example\n24 7\n...1 0 0 0 0\n0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0', 'encoding': 'us-ascii', 'hljs_language': 'plaintext', ...} directory = 'e6f5a6b1bfd7c398cdd345f7c64acc3c2ff0bf27' 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.id], ObjectType.REVISION: [missing_rev], ObjectType.RELEASE: [missing_rel], ObjectType.SNAPSHOT: [missing_snp], } E AttributeError: 'str' object has no attribute 'id' .tox/py3/lib/python3.7/site-packages/swh/web/tests/common/test_archive.py:976: AttributeError