Page MenuHomeSoftware Heritage

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

TEST RESULT

Run At
Apr 29 2021, 10:23 AM
Details
self = <swh.storage.tests.test_in_memory.TestInMemoryStorage object at 0x7f388c4b2240> swh_storage = <swh.storage.in_memory.InMemoryStorage object at 0x7f388c4b2160> sample_data = <swh.storage.tests.storage_data.StorageData object at 0x7f3850b8f400> def test_revision_shortlog(self, swh_storage, sample_data): revision1, revision2, revision3, revision4 = sample_data.revisions[:4] # rev4 -is-child-of-> rev3 -> (rev1, rev2); rev2 -> rev1 > swh_storage.revision_add([revision1, revision2, revision3, revision4]) .tox/py3/lib/python3.7/site-packages/swh/storage/tests/storage_tests.py:1032: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <swh.storage.in_memory.InMemoryStorage object at 0x7f388c4b2160> revisions = [Revision(message=b'hello', author=Person(fullname=b'Nicolas Dandrimont <nicolas@example.com> ', name=b'Nicolas Dandri...\xff0e\x8e'W<\xb4n\xb5Y\x80\xe9t\xb3\x91",), id=b'\xae\x86\n\xecCp\x0c\x7fZ)^.\xf4~*\xe4\x1bS]\xfe', 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