Skip to content

Commit 53cd893

Browse files
test: enhance backward compatibility test for web_search alias
Add web_search to test inputs to ensure the alias mapping from web_search -> search_web is properly tested, addressing reviewer feedback from Copilot. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Mervin Praison <MervinPraison@users.noreply.github.com>
1 parent 69e6ace commit 53cd893

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/praisonai-agents/tests/managed/test_tool_alias_consistency.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ def test_backward_compatibility(self):
7777
from praisonai.praisonai.integrations.managed_agents import map_managed_tools
7878

7979
# Test function signature and behavior is preserved
80-
test_tools = ["bash", "grep", "web_fetch", "unknown_tool"]
80+
test_tools = ["bash", "grep", "web_fetch", "unknown_tool", "web_search"]
8181
result = map_managed_tools(test_tools)
8282

83-
expected = ["execute_command", "search_file", "web_fetch", "unknown_tool"]
83+
expected = ["execute_command", "search_file", "web_fetch", "unknown_tool", "search_web"]
8484
assert result == expected, f"map_managed_tools should map known tools and pass through unknown ones"
8585

8686
def test_no_duplicate_definitions(self):

0 commit comments

Comments
 (0)