optimize: code node has a bad error message (#3949)

This commit is contained in:
Yeuoly 2024-04-28 17:40:29 +08:00 committed by GitHub
commit e7b4d024ee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 9 deletions

View file

@ -114,7 +114,7 @@ def test_execute_code_output_validator(setup_code_executor_mock):
result = node.run(pool)
assert result.status == WorkflowNodeExecutionStatus.FAILED
assert result.error == 'result in output form must be a string'
assert result.error == 'Output variable `result` must be a string'
def test_execute_code_output_validator_depth():
code = '''