Changeset View
Changeset View
Standalone View
Standalone View
swh/vault/tests/conftest.py
Show All 40 Lines | |||||
@pytest.fixture | @pytest.fixture | ||||
def swh_vault_config(postgres_vault, postgres_storage, tmp_path) -> Dict[str, Any]: | def swh_vault_config(postgres_vault, postgres_storage, tmp_path) -> Dict[str, Any]: | ||||
tmp_path = str(tmp_path) | tmp_path = str(tmp_path) | ||||
return { | return { | ||||
"db": postgres_vault.dsn, | "db": postgres_vault.dsn, | ||||
"storage": { | "storage": { | ||||
"cls": "local", | "cls": "postgresql", | ||||
"db": postgres_storage.dsn, | "db": postgres_storage.dsn, | ||||
"objstorage": { | "objstorage": { | ||||
"cls": "pathslicing", | "cls": "pathslicing", | ||||
"args": {"root": tmp_path, "slicing": "0:1/1:5",}, | "args": {"root": tmp_path, "slicing": "0:1/1:5",}, | ||||
}, | }, | ||||
}, | }, | ||||
"cache": { | "cache": { | ||||
"cls": "pathslicing", | "cls": "pathslicing", | ||||
Show All 31 Lines |