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 29 2021, 10:28 AM
Details
self = <swh.storage.tests.test_in_memory.TestInMemoryStorage object at 0x7f456ede8f98> swh_storage = <swh.storage.in_memory.InMemoryStorage object at 0x7f4521fb8780> sample_data = <swh.storage.tests.storage_data.StorageData object at 0x7f4521fb8a20> 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: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <swh.storage.in_memory.InMemoryStorage object at 0x7f4521fb8780> revisions = [Revision(message=b'hello', author=Person(fullname=b'John Doe <john.doe@example.com>', name=b'John Doe', email=b'john....1b,\xad\xda#zh\xad\xbb\x12',), id=b'\xa6F\xdd\x94\xc9\x12\x82\x96Y\xb2*\x1e~\x14=/\xa5\xeb\xde\x1b', extra_headers=())] def revision_add(self, revisions: List[Revision]) -> Dict: # Filter-out revisions already in the database > if not self._allow_overwrite: E AttributeError: 'InMemoryStorage' object has no attribute '_allow_overwrite' .tox/py3/lib/python3.7/site-packages/swh/storage/cassandra/storage.py:526: AttributeError