Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Paste
P724
overriding swh_loader_config locally
Active
Public
Actions
Authored by
ardumont
on Jul 20 2020, 4:30 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Subscribers
None
# 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),
}
Event Timeline
ardumont
created this paste.
Jul 20 2020, 4:30 PM
2020-07-20 16:30:35 (UTC+2)
Log In to Comment