mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-09-22 01:25:06 +02:00
Make test deterministic
This commit is contained in:
@@ -95,16 +95,6 @@
|
||||
"source": "left",
|
||||
"target": "condition"
|
||||
},
|
||||
{
|
||||
"source": "condition",
|
||||
"target": "left",
|
||||
"data": "left"
|
||||
},
|
||||
{
|
||||
"source": "condition",
|
||||
"target": "right",
|
||||
"data": "right"
|
||||
},
|
||||
{
|
||||
"source": "condition",
|
||||
"target": "__end__",
|
||||
@@ -116,39 +106,33 @@
|
||||
# ---
|
||||
# name: test_conditional_entrypoint_graph.3
|
||||
'''
|
||||
+-----------+
|
||||
| __start__ |
|
||||
+-----------+
|
||||
*
|
||||
*
|
||||
*
|
||||
+--------------+
|
||||
| should_start |
|
||||
+--------------+
|
||||
** **
|
||||
** **
|
||||
* **
|
||||
+------+ *
|
||||
| left | *
|
||||
+------+ *
|
||||
* *
|
||||
* *
|
||||
* *
|
||||
+-----------+ *
|
||||
| condition | *
|
||||
+-----------+*** *
|
||||
* *** *
|
||||
* **** *
|
||||
* ** *
|
||||
* +-------+
|
||||
** | right |
|
||||
** +-------+
|
||||
** **
|
||||
** **
|
||||
* *
|
||||
+---------+
|
||||
| __end__ |
|
||||
+---------+
|
||||
+-----------+
|
||||
| __start__ |
|
||||
+-----------+
|
||||
*
|
||||
*
|
||||
*
|
||||
+--------------+
|
||||
| should_start |
|
||||
+--------------+
|
||||
* **
|
||||
** *
|
||||
* **
|
||||
+------+ *
|
||||
| left | *
|
||||
+------+ *
|
||||
* *
|
||||
* *
|
||||
* *
|
||||
+-----------+ +-------+
|
||||
| condition | | right |
|
||||
+-----------+ +-------+
|
||||
* *
|
||||
** **
|
||||
* *
|
||||
+---------+
|
||||
| __end__ |
|
||||
+---------+
|
||||
'''
|
||||
# ---
|
||||
# name: test_conditional_entrypoint_graph_state
|
||||
|
||||
@@ -1367,7 +1367,7 @@ def test_conditional_entrypoint_graph(snapshot: SnapshotAssertion) -> None:
|
||||
should_start, {"go-left": "left", "go-right": "right"}
|
||||
)
|
||||
|
||||
workflow.add_conditional_edges("left", lambda data: END)
|
||||
workflow.add_conditional_edges("left", lambda data: END, {END: END})
|
||||
workflow.add_edge("right", END)
|
||||
|
||||
app = workflow.compile()
|
||||
|
||||
Reference in New Issue
Block a user