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"