# https://forge.softwareheritage.org/source/swh-loader-mercurial/browse/master/swh/loader/mercurial/tests/conftest.py$11-41 # Copyright (C) 2019-2020 The Software Heritage developers # See the AUTHORS file at the top-level directory of this distribution # License: GNU General Public License version 3, or any later version # See top-level LICENSE file for more information import pytest from typing import Any, Dict @pytest.fixture def swh_loader_config() -> Dict[str, Any]: swh_storage_backend_config["journal_writer"] = {} return { "storage": { "cls": "pipeline", "steps": [ {"cls": "filter"}, {"cls": "memory"} ], }, "bundle_filename": "HG20_none_bundle", "cache1_size": 838860800, "cache2_size": 838860800, "clone_timeout_seconds": 2 * 3600, "reduce_effort": False, "save_data": False, "save_data_path": "", "max_content_size": 104857600, "temp_directory": str(tmp_path), }