🐛 fix(base.py): change assignment of source_handle and target_handle to use get() method to handle missing keys gracefully
🐛 fix(base.py): change assignment of parent_node_id and parent_is_top_level to use state dictionary instead of _data attribute 🐛 fix(test_graph.py): change arguments passed to update_source_handle() function to match its signature
This commit is contained in:
parent
1eca5bd40a
commit
4d6c731a9d
3 changed files with 7 additions and 5 deletions
|
|
@ -497,7 +497,7 @@ def test_update_source_handle():
|
|||
"edges": [{"source": "some_node"}],
|
||||
}
|
||||
updated_edge = update_source_handle(
|
||||
new_edge, {"nodes": flow_data["nodes"], "edges": flow_data["edges"]}
|
||||
new_edge, flow_data["nodes"], flow_data["edges"]
|
||||
)
|
||||
assert updated_edge["source"] == "last_node"
|
||||
assert updated_edge["data"]["sourceHandle"]["id"] == "last_node"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue