Page MenuHomeSoftware Heritage

D8353.diff
No OneTemporary

D8353.diff

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

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

Event Timeline