Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7066412
D3550.id12514.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
D3550.id12514.diff
View Options
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,4 +1,4 @@
swh.storage >= 0.10.0
swh.model >= 0.4.0
swh.scheduler >= 0.0.39
-swh.loader.core >= 0.5.5
+swh.loader.core >= 0.5.9
diff --git a/swh/loader/svn/tests/conftest.py b/swh/loader/svn/tests/conftest.py
--- a/swh/loader/svn/tests/conftest.py
+++ b/swh/loader/svn/tests/conftest.py
@@ -3,9 +3,7 @@
# License: GNU General Public License version 3, or any later version
# See top-level LICENSE file for more information
-import os
import pytest
-import yaml
from typing import Any, Dict
@@ -38,12 +36,3 @@
"save_data_path": "",
"temp_directory": "/tmp",
}
-
-
-@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
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Nov 5 2024, 8:14 AM (8 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3216891
Attached To
D3550: tests: Reuse pytest fixtures from swh.loader.core
Event Timeline
Log In to Comment