Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9313047
conftest.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
906 B
Subscribers
None
conftest.py
View Options
# Copyright (C) 2021 The Software Heritage developers
# See the AUTHORS file at the top-level directory of this distribution
# License: GNU Affero General Public License version 3, or any later version
# See top-level LICENSE file for more information
from
os
import
environ
,
path
import
pytest
import
swh.clearlydefined
from
swh.core.db.pytest_plugin
import
postgresql_fact
SQL_DIR
=
path
.
join
(
path
.
dirname
(
swh
.
clearlydefined
.
__file__
),
"sql"
)
environ
[
"LC_ALL"
]
=
"C.UTF-8"
pytest_plugins
=
[
"swh.storage.pytest_plugin"
]
swh_clearcode
=
postgresql_fact
(
"postgresql_proc"
,
dbname
=
"clearcode"
,
dump_files
=
path
.
join
(
SQL_DIR
,
"*.sql"
)
)
@pytest.fixture
def
clearcode_dsn
(
swh_clearcode
):
"""Basic pg storage configuration with no journal collaborator
(to avoid pulling optional dependency on clients of this fixture)
"""
clearcode_dsn
=
swh_clearcode
.
dsn
return
clearcode_dsn
File Metadata
Details
Attached
Mime Type
text/x-python
Expires
Thu, Jul 3, 11:21 AM (1 w, 23 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3373880
Attached To
rDMFCD ClearlyDefined metadata fetcher
Event Timeline
Log In to Comment