mirror of
https://github.com/jamiepine/voicebox.git
synced 2026-10-04 01:25:18 -07:00
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.
This commit is contained in:
committed by
capy-ai-staging[bot]
parent
ab9a19790c
commit
4f54e16824
@@ -117,12 +117,12 @@ async def test_rest_speak_defaults_to_en_without_profile_language(captured_reque
|
|||||||
assert captured_request["req"].language == "en"
|
assert captured_request["req"].language == "en"
|
||||||
|
|
||||||
|
|
||||||
# ─── MCP: voicebox.speak ──────────────────────────────────────────────────
|
# ─── MCP: voicebox_speak ──────────────────────────────────────────────────
|
||||||
|
|
||||||
|
|
||||||
async def _call_mcp(monkeypatch, profile_language, requested_language=None):
|
async def _call_mcp(monkeypatch, profile_language, requested_language=None):
|
||||||
# Build the server from the same ``fastmcp`` package production imports so
|
# 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.
|
# lives — is the code under test.
|
||||||
from fastmcp import FastMCP
|
from fastmcp import FastMCP
|
||||||
|
|
||||||
@@ -138,7 +138,7 @@ async def _call_mcp(monkeypatch, profile_language, requested_language=None):
|
|||||||
args = {"text": "Bonjour"}
|
args = {"text": "Bonjour"}
|
||||||
if requested_language is not None:
|
if requested_language is not None:
|
||||||
args["language"] = requested_language
|
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):
|
async def test_mcp_speak_falls_back_to_profile_language(captured_request, monkeypatch):
|
||||||
|
|||||||
Reference in New Issue
Block a user