From 4c7fe88ca27aeca651c8332526395bc9438b2e74 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Wed, 12 Feb 2025 11:01:37 +0000 Subject: [PATCH] test: Add negative test cases for tool output formatting Co-Authored-By: Joe Moura --- tests/crew_test.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/crew_test.py b/tests/crew_test.py index b55977f2e..c593b525e 100644 --- a/tests/crew_test.py +++ b/tests/crew_test.py @@ -324,6 +324,9 @@ def test_sync_task_execution(): ("test result``````", "test result"), ("test result", "test result"), ("test ```result```", "test ```result"), # Only strip trailing backticks + (None, None), # Test non-string input + ("", ""), # Test empty string + ("malformed`result```test", "malformed`result```test"), # Test non-trailing backticks ]) def test_hierarchical_tool_output_formatting(tool_output, expected): """Test that tool outputs in hierarchical mode don't have extra backticks.