mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-13 18:24:45 +08:00
test: add unit tests for graph (#296)
* test: added unit test of builder * test: Add unit tests for nodes.py * test: add more unit tests in test_nodes * test: try to fix the unit test error on GitHub * test: reformate the code of test_nodes.py * Fix the test error of reset the local argument * Fixed the test error by setup args * reformat the code
This commit is contained in:
@@ -190,7 +190,7 @@ def human_feedback_node(
|
||||
goto = "reporter"
|
||||
except json.JSONDecodeError:
|
||||
logger.warning("Planner response is not a valid JSON")
|
||||
if plan_iterations > 0:
|
||||
if plan_iterations > 1: # the plan_iterations is increased before this check
|
||||
return Command(goto="reporter")
|
||||
else:
|
||||
return Command(goto="__end__")
|
||||
|
||||
Reference in New Issue
Block a user