def test_combine_validators(data_rdf, profiles_rdf): c = Cheka(data_graph_ttl=data_rdf, profiles_graph_ttl=profiles_rdf) c._get_artifact_uris() c._dereference_artifact_uris() c._make_shapes_graph() assert (len(c.sg) == 60)
def test_artifact_dereferencing(data_rdf, profiles_rdf): c = Cheka(data_graph_ttl=data_rdf, profiles_graph_ttl=profiles_rdf) c._get_artifact_uris() c._dereference_artifact_uris() for uri in c.artifact_uris: file_name = uri.replace("file://", "").replace(Cheka.VALIDATORS_DIR, "").split("/")[-1] file_path = join(Cheka.VALIDATORS_DIR, file_name) assert isfile(file_path)