feat: added tests for building the langchain obj

This commit is contained in:
Gabriel Almeida 2023-03-25 20:20:47 -03:00
commit 8ccc22086b
2 changed files with 100 additions and 2 deletions

View file

@ -64,9 +64,9 @@ def test_build_json_missing_child():
if isinstance(value, dict) and "required" in value:
value["required"] = True
graph = Graph(nodes, edges)
root = get_root_node(graph)
with pytest.raises(ValueError):
graph = Graph(nodes, edges)
root = get_root_node(graph)
build_json(root, graph)