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.