The open-source AI voice studio. Clone, dictate, create.
test(speak): build the MCP test server from fastmcp, the package production imports
jamiepine6ad47dda8928
diff --git a/backend/tests/test_speak_language.py b/backend/tests/test_speak_language.pyindex 97f9f57f..0997a110 100644--- a/backend/tests/test_speak_language.py+++ b/backend/tests/test_speak_language.py@@ -121,7 +121,10 @@ async def test_rest_speak_defaults_to_en_without_profile_language(captured_requeasync 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 FastMCPmonkeypatch.setattr(tools,