test(toolsets): lock web search into default platform coverage

Adds regression tests pinning web search into the WhatsApp and api-server
default platform-coverage toolsets. Pure test additions, no runtime change.

Salvage of the test-addition commit from #25692 by @wesleysimplicio.
(The AUTHOR_MAP fixup commit from the same PR landed separately as
529ec85c7.)
This commit is contained in:
wesleysimplicio 2026-05-14 08:03:26 -07:00 committed by Teknium
parent 529ec85c77
commit 436a0a271e
2 changed files with 14 additions and 0 deletions

View file

@ -83,6 +83,12 @@ def test_get_platform_tools_default_telegram_includes_messaging():
assert "messaging" in enabled
def test_get_platform_tools_default_whatsapp_includes_web():
enabled = _get_platform_tools({}, "whatsapp")
assert "web" in enabled
def test_get_platform_tools_homeassistant_platform_keeps_homeassistant_toolset():
enabled = _get_platform_tools({}, "homeassistant")

View file

@ -246,3 +246,11 @@ class TestPluginToolsets:
all_toolsets = get_all_toolsets()
assert "plugin_bundle" in all_toolsets
assert all_toolsets["plugin_bundle"]["tools"] == ["plugin_tool"]
class TestDefaultPlatformWebSearchCoverage:
def test_hermes_whatsapp_toolset_includes_web_search(self):
assert "web_search" in resolve_toolset("hermes-whatsapp")
def test_hermes_api_server_toolset_includes_web_search(self):
assert "web_search" in resolve_toolset("hermes-api-server")