Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.storage.tests.test_validate::test_validating_proxy_storage_revision
Failed

TEST RESULT

Run At
Apr 6 2021, 1:56 PM
Details
swh_storage = <swh.storage.validate.ValidatingProxyStorage object at 0x7fb4078955f8> sample_data = <swh.storage.tests.storage_data.StorageData object at 0x7fb404d35dd8> def test_validating_proxy_storage_revision(swh_storage, sample_data): sample_revision = sample_data.revision id_ = hash_to_hex(sample_revision.id) assert swh_storage.revision_missing([sample_revision.id]) == [sample_revision.id] with pytest.raises(StorageArgumentException, match=f"should be {id_}"): s = swh_storage.revision_add([attr.evolve(sample_revision, id=b"a" * 20)]) assert swh_storage.revision_missing([sample_revision.id]) == [sample_revision.id] > s = swh_storage.revision_add([sample_revision]) .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_validate.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.7/site-packages/swh/storage/validate.py:63: in revision_add return self.storage.revision_add(revisions) .tox/py3/lib/python3.7/site-packages/swh/storage/cassandra/storage.py:484: in revision_add revisions = list(set(revisions)) <attrs generated hash swh.model.model.Revision>:15: in __hash__ self.extra_headers, _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = ImmutableDict({'checksums': {'sha1': 'tarball-sha1', 'sha256': 'tarball-sha256'}, 'signed-off-by': 'some-dude'}) def __hash__(self): > return hash(tuple(sorted(self.data))) E TypeError: unhashable type: 'dict' .tox/py3/lib/python3.7/site-packages/swh/model/collections.py:49: TypeError