Changeset View
Changeset View
Standalone View
Standalone View
swh/indexer/tests/storage/conftest.py
Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Lines | |||||
swh_indexer_storage_postgresql = postgresql_fact( | swh_indexer_storage_postgresql = postgresql_fact( | ||||
"postgresql_proc", dump_files=DUMP_FILES | "postgresql_proc", dump_files=DUMP_FILES | ||||
) | ) | ||||
@pytest.fixture | @pytest.fixture | ||||
def swh_indexer_storage(swh_indexer_storage_postgresql): | def swh_indexer_storage(swh_indexer_storage_postgresql): | ||||
return get_indexer_storage("local", db=swh_indexer_storage_postgresql.dsn) | return get_indexer_storage( | ||||
"local", | |||||
db=swh_indexer_storage_postgresql.dsn, | |||||
journal_writer={"cls": "memory",}, | |||||
) |