[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot] 2025-12-27 18:07:02 +00:00 committed by GitHub
parent 1ab214cdc3
commit 832cc98744
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 17 deletions

View File

@ -54,14 +54,9 @@ def test_jinja2_template_with_special_characters():
<pre>'''code block'''</pre>
</body>
</html>"""
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"<textarea name='notes'>{notes_content}</textarea>"
assert result["result"] == expected_output

View File

@ -60,14 +60,9 @@ class TestJinja2CodeExecutor(CodeExecutorTestMixin):
<pre>'''code block'''</pre>
</body>
</html>"""
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"]