Changeset View
Changeset View
Standalone View
Standalone View
swh/storage/pytest_plugin.py
Show All 12 Lines | |||||
from swh.storage.tests.storage_data import StorageData | from swh.storage.tests.storage_data import StorageData | ||||
SQL_DIR = path.join(path.dirname(swh.storage.__file__), "sql") | SQL_DIR = path.join(path.dirname(swh.storage.__file__), "sql") | ||||
environ["LC_ALL"] = "C.UTF-8" | environ["LC_ALL"] = "C.UTF-8" | ||||
swh_storage_postgresql = postgresql_fact( | swh_storage_postgresql = postgresql_fact( | ||||
"postgresql_proc", db_name="storage", dump_files=path.join(SQL_DIR, "*.sql") | "postgresql_proc", dbname="storage", dump_files=path.join(SQL_DIR, "*.sql") | ||||
) | ) | ||||
@pytest.fixture | @pytest.fixture | ||||
def swh_storage_backend_config(swh_storage_postgresql): | def swh_storage_backend_config(swh_storage_postgresql): | ||||
"""Basic pg storage configuration with no journal collaborator | """Basic pg storage configuration with no journal collaborator | ||||
(to avoid pulling optional dependency on clients of this fixture) | (to avoid pulling optional dependency on clients of this fixture) | ||||
Show All 25 Lines |