mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-26 08:38:15 +00:00
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.
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user