Changeset View
Changeset View
Standalone View
Standalone View
swh/scheduler/tests/es/conftest.py
# Copyright (C) 2019 The Software Heritage developers | # Copyright (C) 2019 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 | ||||
import pytest | import pytest | ||||
import yaml | import yaml | ||||
from swh.scheduler import get_scheduler | from swh.scheduler import get_scheduler | ||||
@pytest.fixture | @pytest.fixture | ||||
def swh_sched_config(swh_scheduler_config): | def swh_sched_config(swh_scheduler_config): | ||||
return { | return { | ||||
"scheduler": {"cls": "local", "args": swh_scheduler_config,}, | "scheduler": {"cls": "local", **swh_scheduler_config,}, | ||||
"elasticsearch": { | "elasticsearch": { | ||||
"cls": "memory", | "cls": "memory", | ||||
"args": {"index_name_prefix": "swh-tasks",}, | "args": {"index_name_prefix": "swh-tasks",}, | ||||
}, | }, | ||||
} | } | ||||
@pytest.fixture | @pytest.fixture | ||||
Show All 25 Lines |