Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.storage.tests.test_in_memory.TestInMemoryStorage::test_revision_add_name_clash
Failed

TEST RESULT

Run At
Apr 6 2021, 1:56 PM
Details
self = <swh.storage.tests.test_in_memory.TestInMemoryStorage object at 0x7fb3ef481cc0> swh_storage = <swh.storage.in_memory.InMemoryStorage object at 0x7fb3ef481b00> sample_data = <swh.storage.tests.storage_data.StorageData object at 0x7fb3eb9fd3c8> def test_revision_add_name_clash(self, swh_storage, sample_data): revision, revision2 = sample_data.revisions[:2] revision1 = attr.evolve( revision, author=Person( fullname=b"John Doe <john.doe@example.com>", name=b"John Doe", email=b"john.doe@example.com", ), ) revision2 = attr.evolve( revision2, author=Person( fullname=b"John Doe <john.doe@example.com>", name=b"John Doe ", email=b"john.doe@example.com ", ), ) > actual_result = swh_storage.revision_add([revision1, revision2]) .tox/py3/lib/python3.7/site-packages/swh/storage/tests/storage_tests.py:981: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .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