From 832cc98744872b17347b79827b7963192e991a0f Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Sat, 27 Dec 2025 18:07:02 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- .../nodes/code_executor/test_code_jinja2.py | 13 +++---------- .../nodes/code_executor/test_code_jinja2.py | 9 ++------- 2 files changed, 5 insertions(+), 17 deletions(-) diff --git a/api/tests/integration_tests/workflow/nodes/code_executor/test_code_jinja2.py b/api/tests/integration_tests/workflow/nodes/code_executor/test_code_jinja2.py index b65ca88632..c8eb9ec3e4 100644 --- a/api/tests/integration_tests/workflow/nodes/code_executor/test_code_jinja2.py +++ b/api/tests/integration_tests/workflow/nodes/code_executor/test_code_jinja2.py @@ -54,14 +54,9 @@ def test_jinja2_template_with_special_characters():
'''code block'''
""" - inputs = { - "task": {"Task ID": "TASK-123", "Issues": "Line 1\nLine 2\nLine 3"}, - "status": "completed" - } + inputs = {"task": {"Task ID": "TASK-123", "Issues": "Line 1\nLine 2\nLine 3"}, "status": "completed"} - result = CodeExecutor.execute_workflow_code_template( - language=CODE_LANGUAGE, code=template, inputs=inputs - ) + result = CodeExecutor.execute_workflow_code_template(language=CODE_LANGUAGE, code=template, inputs=inputs) # Verify the template rendered correctly with all special characters output = result["result"] @@ -80,9 +75,7 @@ def test_jinja2_template_with_html_textarea_prefill(): notes_content = "This is a multi-line note.\nWith special chars: 'single' and \"double\" quotes." inputs = {"notes": notes_content} - result = CodeExecutor.execute_workflow_code_template( - language=CODE_LANGUAGE, code=template, inputs=inputs - ) + result = CodeExecutor.execute_workflow_code_template(language=CODE_LANGUAGE, code=template, inputs=inputs) expected_output = f"" assert result["result"] == expected_output diff --git a/api/tests/test_containers_integration_tests/workflow/nodes/code_executor/test_code_jinja2.py b/api/tests/test_containers_integration_tests/workflow/nodes/code_executor/test_code_jinja2.py index f923379742..ddb079f00c 100644 --- a/api/tests/test_containers_integration_tests/workflow/nodes/code_executor/test_code_jinja2.py +++ b/api/tests/test_containers_integration_tests/workflow/nodes/code_executor/test_code_jinja2.py @@ -60,14 +60,9 @@ class TestJinja2CodeExecutor(CodeExecutorTestMixin):
'''code block'''
""" - inputs = { - "task": {"Task ID": "TASK-123", "Issues": "Line 1\nLine 2\nLine 3"}, - "status": "completed" - } + inputs = {"task": {"Task ID": "TASK-123", "Issues": "Line 1\nLine 2\nLine 3"}, "status": "completed"} - result = CodeExecutor.execute_workflow_code_template( - language=CodeLanguage.JINJA2, code=template, inputs=inputs - ) + result = CodeExecutor.execute_workflow_code_template(language=CodeLanguage.JINJA2, code=template, inputs=inputs) # Verify the template rendered correctly with all special characters output = result["result"]