Skip to content

add test file

add test file #74

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

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_pyshacl.test_workflow_execution

AssertionError: assert False
 +  where False = isomorphic(<Graph identifier=N07a4310f23804089b6ba2b10547c6a5e (<class 'rdflib.graph.Graph'>)>, <Graph identifier=Nc552be51fa94463390cb954f4617ec1e (<class 'rdflib.graph.Graph'>)>)
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=True,
            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 isomorphic(result, test)
E       AssertionError: assert False
E        +  where False = isomorphic(<Graph identifier=N07a4310f23804089b6ba2b10547c6a5e (<class 'rdflib.graph.Graph'>)>, <Graph identifier=Nc552be51fa94463390cb954f4617ec1e (<class 'rdflib.graph.Graph'>)>)

tests/test_pyshacl.py:75: AssertionError