use custom graph in tests and check result #46
GitHub Actions / JUnit Test Report
failed
Sep 23, 2024 in 0s
3 tests run, 2 passed, 0 skipped, 1 failed.
Annotations
Check failure on line 66 in .mypy_cache/3.11/tests/test_shapes.data.json
github-actions / JUnit Test Report
test_shapes.test_workflow_execution
AssertionError: assert <Graph identi...rphicGraph'>)> == <Graph identi...rphicGraph'>)>
Full diff:
- <Graph identifier=Ned94b9c1b247437dbd42b22fbce4309a (<class 'rdflib.compare.IsomorphicGraph'>)>
+ <Graph identifier=N2c7d2d846c9a442fabf8841318d83ab9 (<class 'rdflib.compare.IsomorphicGraph'>)>
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=False,
import_shapes=True,
).execute(inputs=None, context=TestExecutionContext(project_id=PROJECT_NAME))
result = Graph().parse(data=get(RESULT_IRI, owl_imports_resolution=False).text)
test = Graph().parse(Path(__path__[0]) / "test_shapes.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=Ned94b9c1b247437dbd42b22fbce4309a (<class 'rdflib.compare.IsomorphicGraph'>)>
E + <Graph identifier=N2c7d2d846c9a442fabf8841318d83ab9 (<class 'rdflib.compare.IsomorphicGraph'>)>
tests/test_shapes.py:66: AssertionError
Loading