From 7a0894f7b60c8c9437a3cf6d33a42e042fcb732e Mon Sep 17 00:00:00 2001 From: GuanMu Date: Wed, 16 Jul 2025 08:50:04 +0000 Subject: [PATCH] Fix: Ensure the import of SystemVariableKey is available in test cases to support the correctness validation of custom output variables. --- api/tests/unit_tests/core/workflow/nodes/answer/test_answer.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/tests/unit_tests/core/workflow/nodes/answer/test_answer.py b/api/tests/unit_tests/core/workflow/nodes/answer/test_answer.py index 90c77b0385..8af6202ef6 100644 --- a/api/tests/unit_tests/core/workflow/nodes/answer/test_answer.py +++ b/api/tests/unit_tests/core/workflow/nodes/answer/test_answer.py @@ -87,6 +87,7 @@ def test_execute_answer(): def test_execute_answer_with_outputs(): + from core.workflow.enums import SystemVariableKey # 确保函数作用域内可用 """Test Answer node with custom output variables""" graph_config = { "edges": [ @@ -174,6 +175,7 @@ def test_execute_answer_with_outputs(): def test_execute_answer_with_empty_outputs(): + from core.workflow.enums import SystemVariableKey # 确保函数作用域内可用 """Test Answer node with empty outputs configuration""" graph_config = { "edges": [