From 7a07972ebe25d97c9913c202e96bbb432a4b13ef Mon Sep 17 00:00:00 2001 From: Brandon Hancock Date: Fri, 21 Mar 2025 11:27:12 -0400 Subject: [PATCH] Improve test --- tests/utilities/test_string_utils.py | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/tests/utilities/test_string_utils.py b/tests/utilities/test_string_utils.py index 9a60cb97d..441aae8c0 100644 --- a/tests/utilities/test_string_utils.py +++ b/tests/utilities/test_string_utils.py @@ -6,7 +6,7 @@ from crewai.utilities.string_utils import interpolate_only class TestInterpolateOnly: - """Tests for the interpolate_only function in formatter.py.""" + """Tests for the interpolate_only function in string_utils.py.""" def test_basic_variable_interpolation(self): """Test basic variable interpolation works correctly.""" @@ -185,18 +185,3 @@ class TestInterpolateOnly: interpolate_only(template, inputs) assert "inputs dictionary cannot be empty" in str(excinfo.value).lower() - - def test_complex_nested_objects_in_inputs(self): - """Test that complex nested objects in inputs are converted to string.""" - template = "Data: {data}" - inputs: Dict[str, Union[str, int, float, Dict[str, Any], List[Any]]] = { - "data": {"nested": {"list": [1, 2, 3], "dict": {"key": "value"}}} - } - - result = interpolate_only(template, inputs) - - assert "Data: " in result - assert ( - "'nested': {'list': [1, 2, 3], 'dict': {'key': 'value'}}" - in result.replace(" ", "") - )