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:
@@ -83,6 +83,12 @@ def test_get_platform_tools_default_telegram_includes_messaging():
|
|||||||
assert "messaging" in enabled
|
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():
|
def test_get_platform_tools_homeassistant_platform_keeps_homeassistant_toolset():
|
||||||
enabled = _get_platform_tools({}, "homeassistant")
|
enabled = _get_platform_tools({}, "homeassistant")
|
||||||
|
|
||||||
|
|||||||
@@ -246,3 +246,11 @@ class TestPluginToolsets:
|
|||||||
all_toolsets = get_all_toolsets()
|
all_toolsets = get_all_toolsets()
|
||||||
assert "plugin_bundle" in all_toolsets
|
assert "plugin_bundle" in all_toolsets
|
||||||
assert all_toolsets["plugin_bundle"]["tools"] == ["plugin_tool"]
|
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")
|
||||||
|
|||||||
Reference in New Issue
Block a user