Skip to content

Commit

Permalink
Fixed failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
jesper-friis committed Oct 14, 2024
1 parent 8853893 commit 69e4cdb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/dataset/test_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def test_save_and_load_dataset():
"""Test save_dataset() and load_dataset()."""
# pylint: disable=too-many-locals,invalid-name

from tripper import Triplestore
from tripper import DCAT, RDF, Triplestore
from tripper.dataset import load_datadoc, load_dataset, save_dataset

ts = Triplestore("rdflib")
Expand All @@ -39,7 +39,11 @@ def test_save_and_load_dataset():
# Should the prefix be expanded?
assert ds["@id"] == "semdata:sample3/pos1_01_grid_200x"

assert "semdata:sample3/pos1_01_grid_200x" in repr1
assert (
"semdata:sample3/pos1_01_grid_200x",
RDF.type,
DCAT.Dataset,
) in repr1
assert d["@id"] == (
"http://sintef.no/data/matchmaker/SEM/sample3/pos1_01_grid_200x"
)
Expand Down

0 comments on commit 69e4cdb

Please sign in to comment.