From 8310ca1369160444c3619c8505939cd510c546a4 Mon Sep 17 00:00:00 2001 From: Greyson LaLonde Date: Thu, 22 Jan 2026 19:17:42 -0500 Subject: [PATCH] fix: update sanitize_tool_name test expectations Align test expectations with unified sanitize_tool_name behavior that lowercases and splits camelCase for LLM provider compatibility. --- .../tests/agents/agent_adapters/test_base_tool_adapter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/crewai/tests/agents/agent_adapters/test_base_tool_adapter.py b/lib/crewai/tests/agents/agent_adapters/test_base_tool_adapter.py index 3003d92c3..81f7555bc 100644 --- a/lib/crewai/tests/agents/agent_adapters/test_base_tool_adapter.py +++ b/lib/crewai/tests/agents/agent_adapters/test_base_tool_adapter.py @@ -71,12 +71,12 @@ def test_tools_method_empty(): def test_sanitize_tool_name_with_spaces(): adapter = ConcreteToolAdapter() - assert adapter.sanitize_tool_name("Tool With Spaces") == "Tool_With_Spaces" + assert adapter.sanitize_tool_name("Tool With Spaces") == "tool_with_spaces" def test_sanitize_tool_name_without_spaces(): adapter = ConcreteToolAdapter() - assert adapter.sanitize_tool_name("ToolWithoutSpaces") == "ToolWithoutSpaces" + assert adapter.sanitize_tool_name("ToolWithoutSpaces") == "tool_without_spaces" def test_sanitize_tool_name_empty():