Skip to content
Snippets Groups Projects
Commit b727f4a6 authored by Antoine Lambert's avatar Antoine Lambert
Browse files

tests: Fix execution after upgrade to pytest-postgresql 5.x

parent 144689ef
No related branches found
No related tags found
No related merge requests found
......@@ -67,7 +67,7 @@ def pytest_collection_modifyitems(items):
def swh_vault_config(postgres_vault, tmp_path) -> Dict[str, Any]:
tmp_path = str(tmp_path)
return {
"db": postgres_vault.dsn,
"db": postgres_vault.info.dsn,
"storage": {
"cls": "memory",
},
......
......@@ -57,7 +57,7 @@ storage_postgresql = factories.postgresql("storage_postgresql_proc")
@pytest.fixture
def swh_storage(storage_postgresql):
return get_storage(
"postgresql", db=storage_postgresql.dsn, objstorage={"cls": "memory"}
"postgresql", db=storage_postgresql.info.dsn, objstorage={"cls": "memory"}
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment