Feat/environment variables in workflow (#6515)
Co-authored-by: JzoNg <jzongcode@gmail.com>
This commit is contained in:
parent
87d583f454
commit
5e6fc58db3
146 changed files with 2486 additions and 746 deletions
|
|
@ -55,9 +55,9 @@ def test_execute_code(setup_code_executor_mock):
|
|||
)
|
||||
|
||||
# construct variable pool
|
||||
pool = VariablePool(system_variables={}, user_inputs={})
|
||||
pool.append_variable(node_id='1', variable_key_list=['123', 'args1'], value=1)
|
||||
pool.append_variable(node_id='1', variable_key_list=['123', 'args2'], value=2)
|
||||
pool = VariablePool(system_variables={}, user_inputs={}, environment_variables=[])
|
||||
pool.add(['1', '123', 'args1'], 1)
|
||||
pool.add(['1', '123', 'args2'], 2)
|
||||
|
||||
# execute node
|
||||
result = node.run(pool)
|
||||
|
|
@ -109,9 +109,9 @@ def test_execute_code_output_validator(setup_code_executor_mock):
|
|||
)
|
||||
|
||||
# construct variable pool
|
||||
pool = VariablePool(system_variables={}, user_inputs={})
|
||||
pool.append_variable(node_id='1', variable_key_list=['123', 'args1'], value=1)
|
||||
pool.append_variable(node_id='1', variable_key_list=['123', 'args2'], value=2)
|
||||
pool = VariablePool(system_variables={}, user_inputs={}, environment_variables=[])
|
||||
pool.add(['1', '123', 'args1'], 1)
|
||||
pool.add(['1', '123', 'args2'], 2)
|
||||
|
||||
# execute node
|
||||
result = node.run(pool)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue