use rdflib.to_isomorphic in test #79
GitHub Actions / JUnit Test Report
failed
Sep 25, 2024 in 0s
3 tests run, 2 passed, 0 skipped, 1 failed.
Annotations
Check failure on line 75 in .mypy_cache/3.11/tests/test_pyshacl.data.json
github-actions / JUnit Test Report
test_pyshacl.test_workflow_execution
AssertionError: assert <Graph identi...rphicGraph'>)> == <Graph identi...rphicGraph'>)>
Full diff:
- <Graph identifier=N176cf2b0683a4aa898ec38296e624e40 (<class 'rdflib.compare.IsomorphicGraph'>)>
? ^ ^^^ ^^^^ - ^ ^^ ^^^^ ^^^^
+ <Graph identifier=N6eb77a722ae34e9ea893c385f43462b6 (<class 'rdflib.compare.IsomorphicGraph'>)>
? ^^^ ^^^ ^^^ ^^^ ^ ^^^^^ ^^
Raw output
_setup = None
@needs_cmem
def test_workflow_execution(_setup: None) -> None: # noqa: PT019
"""Test plugin execution"""
plugin = ShaclValidation(
data_graph_uri="https://vocab.eccenca.com/shacl/",
shacl_graph_uri=SHACL_GRAPH_URI,
validation_graph_uri=VALIDATION_GRAPH_URI,
ontology_graph_uri="",
generate_graph=True,
output_entities=True,
clear_validation_graph=True,
owl_imports=True,
skolemize=False,
add_labels=True,
include_graphs_labels=True,
add_shui_conforms=True,
meta_shacl=False,
inference="both",
advanced=True,
remove_dataset_graph_type=True,
remove_thesaurus_graph_type=True,
remove_shape_catalog_graph_type=True,
max_validation_depth=15,
)
plugin.execute(inputs=(), context=TestExecutionContext())
result = Graph().parse(data=get(VALIDATION_GRAPH_URI).text)
result.remove((None, PROV.generatedAtTime, None))
test = Graph().parse(Path(__path__[0]) / "test_pyshacl.ttl", format="turtle")
> assert to_isomorphic(result) == to_isomorphic(test)
E AssertionError: assert <Graph identi...rphicGraph'>)> == <Graph identi...rphicGraph'>)>
E Full diff:
E - <Graph identifier=N176cf2b0683a4aa898ec38296e624e40 (<class 'rdflib.compare.IsomorphicGraph'>)>
E ? ^ ^^^ ^^^^ - ^ ^^ ^^^^ ^^^^
E + <Graph identifier=N6eb77a722ae34e9ea893c385f43462b6 (<class 'rdflib.compare.IsomorphicGraph'>)>
E ? ^^^ ^^^ ^^^ ^^^ ^ ^^^^^ ^^
tests/test_pyshacl.py:75: AssertionError
Loading