diff --git a/conftest.py b/conftest.py --- a/conftest.py +++ b/conftest.py @@ -5,7 +5,11 @@ import pytest -pytest_plugins = ["swh.scheduler.pytest_plugin", "swh.storage.pytest_plugin"] +pytest_plugins = [ + "swh.scheduler.pytest_plugin", + "swh.storage.pytest_plugin", + "swh.loader.pytest_plugin", +] @pytest.fixture(scope="session") diff --git a/requirements-swh.txt b/requirements-swh.txt --- a/requirements-swh.txt +++ b/requirements-swh.txt @@ -1,5 +1,5 @@ swh.core >= 0.0.7 -swh.loader.core >= 0.5.5 +swh.loader.core >= 0.5.9 swh.model >= 0.4.0 swh.scheduler >= 0.0.39 swh.storage >= 0.10.0 diff --git a/swh/loader/git/tests/conftest.py b/swh/loader/git/tests/conftest.py --- a/swh/loader/git/tests/conftest.py +++ b/swh/loader/git/tests/conftest.py @@ -3,9 +3,6 @@ # License: GNU General Public License version 3, or any later version # See top-level LICENSE file for more information -import os -import yaml - import pytest from typing import Any, Dict @@ -36,12 +33,3 @@ "pack_size_bytes": 4 * 1024 * 1024 * 1024, "save_data": False, } - - -@pytest.fixture -def swh_config(swh_loader_config, monkeypatch, tmp_path): - conffile = os.path.join(str(tmp_path), "loader.yml") - with open(conffile, "w") as f: - f.write(yaml.dump(swh_loader_config)) - monkeypatch.setenv("SWH_CONFIG_FILENAME", conffile) - return conffile