Skip to content

Commit

Permalink
add error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
samwaseda committed Jan 23, 2025
1 parent ca95954 commit 24554dd
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions tests/unit/test_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,11 +184,19 @@ def test_parsing_without_running(self):
data = get_inputs_and_outputs(wf.addition)
self.assertFalse("value" in data["outputs"])
graph = get_triples(data)
self.assertEqual(len(list(graph.triples((None, RDF.value, None)))), 2)
self.assertEqual(
len(list(graph.triples((None, RDF.value, None)))),
2,
msg="There should be only values for a and b, but not for the output",
)
wf.run()
data = get_inputs_and_outputs(wf.addition)
graph = get_triples(data)
self.assertEqual(len(list(graph.triples((None, RDF.value, None)))), 3)
self.assertEqual(
len(list(graph.triples((None, RDF.value, None)))),
3,
msg="There should be values for a, b and the output",
)


if __name__ == "__main__":
Expand Down

0 comments on commit 24554dd

Please sign in to comment.