Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9337685
D8353.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
954 B
Subscribers
None
D8353.diff
View Options
diff --git a/conftest.py b/conftest.py
new file mode 100644
--- /dev/null
+++ b/conftest.py
@@ -0,0 +1,8 @@
+# Copyright (C) 2022 The Software Heritage developers
+# See the AUTHORS file at the top-level directory of this distribution
+# License: GNU General Public License version 3, or any later version
+# See top-level LICENSE file for more information
+
+pytest_plugins = [
+ "swh.graph.pytest_plugin",
+]
diff --git a/swh/graph/tests/conftest.py b/swh/graph/pytest_plugin.py
rename from swh/graph/tests/conftest.py
rename to swh/graph/pytest_plugin.py
--- a/swh/graph/tests/conftest.py
+++ b/swh/graph/pytest_plugin.py
@@ -15,7 +15,7 @@
from swh.graph.http_naive_client import NaiveClient
from swh.graph.rpc.swhgraph_pb2_grpc import TraversalServiceStub
-SWH_GRAPH_TESTS_ROOT = Path(__file__).parents[0]
+SWH_GRAPH_TESTS_ROOT = Path(__file__).parents[0] / "tests"
TEST_GRAPH_PATH = SWH_GRAPH_TESTS_ROOT / "dataset/compressed/example"
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Jul 3 2025, 8:13 AM (10 w, 2 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3222854
Attached To
D8353: Move swh-graph's test fixture in a pytest_plugin module
Event Timeline
Log In to Comment