mirror of
https://github.com/jamiepine/voicebox.git
synced 2026-10-03 17:15:19 -07:00
test(speak): build the MCP test server from fastmcp, the package production imports
This commit is contained in:
committed by
capy-ai-staging[bot]
parent
1a3942f3b3
commit
6ad47dda89
@@ -121,7 +121,10 @@ async def test_rest_speak_defaults_to_en_without_profile_language(captured_reque
|
||||
|
||||
|
||||
async def _call_mcp(monkeypatch, profile_language, requested_language=None):
|
||||
from mcp.server.fastmcp import FastMCP
|
||||
# Build the server from the same ``fastmcp`` package production imports so
|
||||
# the registered ``voicebox.speak`` wrapper — where the profile fallback
|
||||
# lives — is the code under test.
|
||||
from fastmcp import FastMCP
|
||||
|
||||
monkeypatch.setattr(
|
||||
tools,
|
||||
|
||||
Reference in New Issue
Block a user