Changeset View
Changeset View
Standalone View
Standalone View
swh/scheduler/tests/test_cli_task_type.py
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | def mock_pkg_resources(monkeypatch): | ||||
monkeypatch.setattr(pkg_resources, "iter_entry_points", original_method) | monkeypatch.setattr(pkg_resources, "iter_entry_points", original_method) | ||||
@pytest.fixture | @pytest.fixture | ||||
def local_sched_config(swh_scheduler_config): | def local_sched_config(swh_scheduler_config): | ||||
"""Expose the local scheduler configuration | """Expose the local scheduler configuration | ||||
""" | """ | ||||
return {"scheduler": {"cls": "local", "args": swh_scheduler_config}} | return {"scheduler": {"cls": "local", **swh_scheduler_config}} | ||||
@pytest.fixture | @pytest.fixture | ||||
def local_sched_configfile(local_sched_config, tmp_path): | def local_sched_configfile(local_sched_config, tmp_path): | ||||
"""Write in temporary location the local scheduler configuration | """Write in temporary location the local scheduler configuration | ||||
""" | """ | ||||
configfile = tmp_path / "config.yml" | configfile = tmp_path / "config.yml" | ||||
▲ Show 20 Lines • Show All 68 Lines • Show Last 20 Lines |