Skip to content

Commit

Permalink
pytest not working
Browse files Browse the repository at this point in the history
  • Loading branch information
muddymudskipper committed Sep 23, 2024
1 parent 39a7a6f commit d11d9a8
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/test_shapes.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from cmem.cmempy.dp.proxy.update import post as post_update
from cmem.cmempy.workspace.projects.project import delete_project, make_new_project
from rdflib import Graph
from rdflib.compare import graph_diff, to_isomorphic
from rdflib.compare import to_isomorphic

from cmem_plugin_shapes.plugin_shapes import ShapesPlugin
from tests.utils import TestExecutionContext, needs_cmem
Expand Down Expand Up @@ -62,7 +62,4 @@ def test_workflow_execution(_setup: pytest.FixtureRequest) -> None: # noqa: PT0

result = Graph().parse(data=get(RESULT_IRI, owl_imports_resolution=False).text)
test = Graph().parse(Path(__path__[0]) / "test_shapes.ttl", format="turtle")

in_both, in_first, in_second = graph_diff(test, result)
if to_isomorphic(result) != to_isomorphic(test):
raise (AssertionError(next(iter(in_first))))
assert to_isomorphic(result) == to_isomorphic(test)

0 comments on commit d11d9a8

Please sign in to comment.