aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/fixtures/rdf.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/fixtures/rdf.py b/tests/fixtures/rdf.py
index 64d3107..98c4058 100644
--- a/tests/fixtures/rdf.py
+++ b/tests/fixtures/rdf.py
@@ -1,4 +1,5 @@
"""Test fixtures to set up a test named graph for loading RDF data."""
+import pathlib
import os
import tempfile
import subprocess
@@ -24,7 +25,7 @@ SPARQL_CONF = {
@pytest.fixture(scope="session")
def rdf_setup():
"""Upload RDF to a Virtuoso named graph"""
- dir_path = os.path.dirname(__file__).split("fixtures")[0]
+ dir_path = pathlib.Path(__file__).parent.parent
file_path = os.path.join(
dir_path,
"test_data/ttl-files/test-data.ttl",