feat: added tests for building the langchain obj
This commit is contained in:
parent
cccbeeb4d2
commit
8ccc22086b
2 changed files with 100 additions and 2 deletions
|
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue