pytest not working #51
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 65 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=N87e1480a62fb4590abd596eb327cf894 (<class 'rdflib.compare.IsomorphicGraph'>)>
? ^ ^ ^ ^^^^ ^^ ^^ -- ^^ ^^^^^^
+ <Graph identifier=Nffcc2c027ab14603b9906571d25ec20d (<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
E Full diff:
E - <Graph identifier=N87e1480a62fb4590abd596eb327cf894 (<class 'rdflib.compare.IsomorphicGraph'>)>
E ? ^ ^ ^ ^^^^ ^^ ^^ -- ^^ ^^^^^^
E + <Graph identifier=Nffcc2c027ab14603b9906571d25ec20d (<class 'rdflib.compare.IsomorphicGraph'>)>
E ? ^^^^^^^^ ^^ ^ ^ ^ ^^^^ + ^ ^^
tests/test_shapes.py:65: AssertionError
Loading