refactor(api/core/workflow/nodes/variable_assigner): Split into multi files. (#7434)

This commit is contained in:
-LAN-
2024-08-20 15:40:19 +08:00
committed by GitHub
parent 0d4753785f
commit 4f64a5d36d
5 changed files with 122 additions and 110 deletions

View File

@@ -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()