Skip to content

Commit

Permalink
use rdflib.similar in test
Browse files Browse the repository at this point in the history
  • Loading branch information
muddymudskipper committed Sep 25, 2024
1 parent 6e80f56 commit 9ee3d36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_pyshacl.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import pytest
from cmem.cmempy.dp.proxy.graph import delete, get, post_streamed
from rdflib import PROV, RDF, Graph, URIRef
from rdflib.compare import to_isomorphic
from rdflib.compare import similar

from cmem_plugin_pyshacl.plugin_pyshacl import ShaclValidation

Expand Down Expand Up @@ -72,4 +72,4 @@ def test_workflow_execution(_setup: None) -> None: # noqa: PT019
result.remove((None, PROV.generatedAtTime, None))
test = Graph().parse(Path(__path__[0]) / "test_pyshacl.ttl", format="turtle")

assert to_isomorphic(result) == to_isomorphic(test)
assert similar(result, test)

0 comments on commit 9ee3d36

Please sign in to comment.