add prefix test #63
GitHub Actions / JUnit Test Report
failed
Sep 24, 2024 in 0s
4 tests run, 3 passed, 0 skipped, 1 failed.
Annotations
Check failure on line 81 in .mypy_cache/3.11/tests/test_shapes.data.json
github-actions / JUnit Test Report
test_shapes.test_workflow_execution
AssertionError: assert False
+ where False = isomorphic(<Graph identifier=N8bb84e413b9a422ca28dab14d8f618de (<class 'rdflib.graph.Graph'>)>, <Graph identifier=N635c60e708b643079339c42ad9eb0141 (<class 'rdflib.graph.Graph'>)>)
Raw output
_setup = None
@needs_cmem
def test_workflow_execution(_setup: pytest.FixtureRequest) -> None: # noqa: PT019
"""Test plugin execution"""
ShapesPlugin(
data_graph_iri=DATA_IRI,
shapes_graph_iri=RESULT_IRI,
overwrite=True,
import_shapes=True,
prefix_cc=False,
).execute(inputs=None, context=TestExecutionContext(project_id=PROJECT_NAME))
query = f"""
PREFIX owl: <http://www.w3.org/2002/07/owl#>
SELECT ?o {{
GRAPH <https://vocab.eccenca.com/shacl/> {{
<https://vocab.eccenca.com/shacl/> owl:imports ?o
}}
FILTER( ?o = <{RESULT_IRI}> )
}}
"""
result_import = json.loads(post_select(query=query))
assert len(result_import["results"]["bindings"]) == 1
result_graph = Graph().parse(data=get(RESULT_IRI, owl_imports_resolution=False).text)
test = Graph().parse(Path(__path__[0]) / "test_shapes.ttl", format="turtle")
> assert isomorphic(result_graph, test)
E AssertionError: assert False
E + where False = isomorphic(<Graph identifier=N8bb84e413b9a422ca28dab14d8f618de (<class 'rdflib.graph.Graph'>)>, <Graph identifier=N635c60e708b643079339c42ad9eb0141 (<class 'rdflib.graph.Graph'>)>)
tests/test_shapes.py:81: AssertionError
Loading