Page MenuHomeSoftware Heritage

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

TEST RESULT

Run At
Apr 29 2021, 10:28 AM
Details
swh_storage = <swh.storage.in_memory.InMemoryStorage object at 0x7f45472d6c88> @pytest.fixture def swh_contents(swh_storage: StorageInterface) -> Iterable[BaseContent]: contents = [BaseContent.from_dict(c) for c in gen_contents(n=20)] > swh_storage.content_add([c for c in contents if c.status != "absent"]) .tox/py3/lib/python3.7/site-packages/swh/storage/tests/conftest.py:64: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.7/site-packages/swh/storage/cassandra/storage.py:237: in content_add return self._content_add(list(contents), with_data=True) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <swh.storage.in_memory.InMemoryStorage object at 0x7f45472d6c88> contents = [Content(sha1=b'\x17\t\xb5\xc7\x9b\x83\xb5\x0b\xf8\x90\xd3k\xe5\xe3\xf9BA\xe8w\xc7', sha1_git=b'\xb5R\x10\xccH\xc2i\xa...e\xe6tq\x07\xdc\r|#G\xcd', ctime=datetime.datetime(2021, 4, 29, 8, 26, 55, 644989, tzinfo=datetime.timezone.utc)), ...] with_data = True def _content_add(self, contents: List[Content], with_data: bool) -> Dict: # Filter-out content 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:155: AttributeError