Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9337026
conftest.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
conftest.py
View Options
# Copyright (C) 2018-2021 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
from
typing
import
Any
,
Dict
import
pytest
@pytest.fixture
def
swh_storage_backend_config
(
swh_storage_backend_config
):
"""Basic pg storage configuration with no journal collaborator
(to avoid pulling optional dependency on clients of this fixture)
"""
return
{
"cls"
:
"filter"
,
"storage"
:
{
"cls"
:
"buffer"
,
"min_batch_size"
:
{
"content"
:
10
,
"content_bytes"
:
100
*
1024
*
1024
,
"directory"
:
10
,
"revision"
:
10
,
"release"
:
10
,
},
"storage"
:
swh_storage_backend_config
,
},
}
@pytest.fixture
def
swh_loader_config
(
swh_storage_backend_config
)
->
Dict
[
str
,
Any
]:
return
{
"storage"
:
swh_storage_backend_config
,
"max_content_size"
:
100
*
1024
*
1024
,
"save_data_path"
:
None
,
}
File Metadata
Details
Attached
Mime Type
text/x-python
Expires
Jul 4 2025, 7:50 AM (10 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3238197
Attached To
rDLDG Git loader
Event Timeline
Log In to Comment