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 7702384e71..44c9f4e5f0 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 @@ -248,6 +248,7 @@ def test_execute_answer_with_complex_outputs(): result = node._run() assert result.status == WorkflowNodeExecutionStatus.SUCCEEDED + assert result.outputs is not None assert result.outputs["answer"] == "Analysis complete" # Check complex outputs @@ -326,6 +327,7 @@ def test_execute_answer_with_empty_outputs(): result = node._run() assert result.status == WorkflowNodeExecutionStatus.SUCCEEDED + assert result.outputs is not None assert result.outputs["answer"] == "Simple answer" # Check that outputs field is empty when no outputs are configured @@ -404,6 +406,7 @@ def test_execute_answer_outputs_variable_not_found(): result = node._run() assert result.status == WorkflowNodeExecutionStatus.SUCCEEDED + assert result.outputs is not None assert result.outputs["answer"] == "Test answer" # Check that outputs field handles missing variables gracefully