Changeset View
Changeset View
Standalone View
Standalone View
swh/loader/mercurial/tests/conftest.py
# Copyright (C) 2019-2020 The Software Heritage developers | # Copyright (C) 2019-2020 The Software Heritage developers | ||||
# See the AUTHORS file at the top-level directory of this distribution | # See the AUTHORS file at the top-level directory of this distribution | ||||
# License: GNU General Public License version 3, or any later version | # License: GNU General Public License version 3, or any later version | ||||
# See top-level LICENSE file for more information | # See top-level LICENSE file for more information | ||||
from typing import Any, Dict | |||||
import pytest | import pytest | ||||
from typing import Any, Dict | |||||
@pytest.fixture | |||||
def swh_storage_backend_config(): | |||||
yield {"cls": "validate", "storage": {"cls": "memory",}} | |||||
ardumont: the validate proxy no longer exists.
You can rebase and adapt with this:
```
@pytest.fixture… | |||||
douarddaUnsubmitted Not Done Inline Actionsunless I'm wrong the "validate" storage backend has been removed recently douardda: unless I'm wrong the "validate" storage backend has been removed recently | |||||
@pytest.fixture | @pytest.fixture | ||||
def swh_loader_config(swh_storage_backend_config, tmp_path) -> Dict[str, Any]: | def swh_loader_config(swh_storage_backend_config, tmp_path) -> Dict[str, Any]: | ||||
swh_storage_backend_config["journal_writer"] = {} | |||||
return { | return { | ||||
"storage": { | "storage": { | ||||
"cls": "pipeline", | "cls": "pipeline", | ||||
"steps": [ | "steps": [ | ||||
{"cls": "filter"}, | {"cls": "filter"}, | ||||
{ | { | ||||
"cls": "buffer", | "cls": "buffer", | ||||
"min_batch_size": { | "min_batch_size": { | ||||
Show All 20 Lines |
the validate proxy no longer exists.
You can rebase and adapt with this: