Page MenuHomeSoftware Heritage

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

TEST RESULT

Run At
Apr 29 2021, 10:28 AM
Details
swh_storage = <swh.storage.filter.FilteringProxyStorage object at 0x7f45246b3080> sample_data = <swh.storage.tests.storage_data.StorageData object at 0x7f45246b39e8> def test_filtering_proxy_storage_revision(swh_storage, sample_data): sample_revision = sample_data.revision revision = swh_storage.revision_get([sample_revision.id])[0] assert revision is None > s = swh_storage.revision_add([sample_revision]) .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_filter.py:99: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.7/site-packages/swh/storage/filter.py:60: in revision_add return self.storage.revision_add([r for r in revisions if r.id in missing_ids]) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <swh.storage.in_memory.InMemoryStorage object at 0x7f45246b3470> revisions = [Revision(message=b'hello', author=Person(fullname=b'Nicolas Dandrimont <nicolas@example.com> ', name=b'Nicolas Dandri...bb\x12', extra_headers=((b'gpgsig', b'test123'), (b'mergetag', b'foo\\bar'), (b'mergetag', b'"\xaf\x89\x80\x01\x00')))] 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