Skip to content

Commit 7f60116

Browse files
Merge pull request #4 from casework/replace_deprecated_call
Replace deprecated function call
2 parents 79d3390 + e6ccacc commit 7f60116

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_all.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def load_and_check_graph(
3636
) -> rdflib.Graph:
3737
graph = rdflib.Graph()
3838
graph_filepath = os.path.join(os.path.dirname(__file__), basename)
39-
graph.load(graph_filepath, format="turtle")
39+
graph.parse(graph_filepath, format="turtle")
4040
conforms = None
4141
for triple in graph.triples((None, NS_SH.conforms, None)):
4242
assert conforms is None, "Found second result."
@@ -57,7 +57,7 @@ def load_ontology_graph(
5757
) -> rdflib.Graph:
5858
graph = rdflib.Graph()
5959
graph_filepath = os.path.join(os.path.dirname(__file__), basename)
60-
graph.load(graph_filepath, format="turtle")
60+
graph.parse(graph_filepath, format="turtle")
6161
return graph
6262

6363
def test_coverage():

0 commit comments

Comments
 (0)