refactor(api/core/workflow/nodes/variable_assigner): Split into multi files. (#7434)
This commit is contained in:
parent
0d4753785f
commit
4f64a5d36d
5 changed files with 122 additions and 110 deletions
|
|
@ -52,7 +52,7 @@ def test_overwrite_string_variable():
|
|||
input_variable,
|
||||
)
|
||||
|
||||
with mock.patch('core.workflow.nodes.variable_assigner.update_conversation_variable') as mock_run:
|
||||
with mock.patch('core.workflow.nodes.variable_assigner.node.update_conversation_variable') as mock_run:
|
||||
node.run(variable_pool)
|
||||
mock_run.assert_called_once()
|
||||
|
||||
|
|
@ -103,7 +103,7 @@ def test_append_variable_to_array():
|
|||
input_variable,
|
||||
)
|
||||
|
||||
with mock.patch('core.workflow.nodes.variable_assigner.update_conversation_variable') as mock_run:
|
||||
with mock.patch('core.workflow.nodes.variable_assigner.node.update_conversation_variable') as mock_run:
|
||||
node.run(variable_pool)
|
||||
mock_run.assert_called_once()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue