From 4f54e168244a18cbb73270e8de5999d74c473a72 Mon Sep 17 00:00:00 2001 From: jamiepine <32987599+jamiepine@users.noreply.github.com> Date: Sun, 4 Oct 2026 00:12:57 +0000 Subject: [PATCH] test(speak): call the MCP tool by its underscore name #1137 added tests that call the MCP tool as "voicebox.speak"; #1135 renamed the tools to underscore names (voicebox_speak) so Claude Desktop accepts them. Both merged cleanly but the three MCP tests failed on main with NotFoundError. Test-only change. --- backend/tests/test_speak_language.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/tests/test_speak_language.py b/backend/tests/test_speak_language.py index 0997a110..5d9654a9 100644 --- a/backend/tests/test_speak_language.py +++ b/backend/tests/test_speak_language.py @@ -117,12 +117,12 @@ async def test_rest_speak_defaults_to_en_without_profile_language(captured_reque assert captured_request["req"].language == "en" -# ─── MCP: voicebox.speak ────────────────────────────────────────────────── +# ─── MCP: voicebox_speak ────────────────────────────────────────────────── async def _call_mcp(monkeypatch, profile_language, requested_language=None): # Build the server from the same ``fastmcp`` package production imports so - # the registered ``voicebox.speak`` wrapper — where the profile fallback + # the registered ``voicebox_speak`` wrapper — where the profile fallback # lives — is the code under test. from fastmcp import FastMCP @@ -138,7 +138,7 @@ async def _call_mcp(monkeypatch, profile_language, requested_language=None): args = {"text": "Bonjour"} if requested_language is not None: args["language"] = requested_language - await mcp.call_tool("voicebox.speak", args) + await mcp.call_tool("voicebox_speak", args) async def test_mcp_speak_falls_back_to_profile_language(captured_request, monkeypatch):