test: 同步 develop TTS 预览接口新增 style/pitch 参数的断言

develop 上 TTS preview 新增 style、pitch 参数透传,补齐对应单测断言
Merge branch 'origin/develop' into feat/2001-booming-title-style
This commit is contained in:
saas-backend
2026-09-21 00:27:48 +08:00
committed by xiaoxia
parent bba8beffef
commit 9157f193bf
+8
View File
@@ -102,7 +102,9 @@ class TestTTSPreviewEndpoint:
voice_id="longxiaochun",
speed=1.0,
emotion="",
style="",
language="zh-CN",
pitch=1.0,
)
def test_preview_with_speed(self):
@@ -149,7 +151,9 @@ class TestTTSPreviewEndpoint:
voice_id="v1",
speed=1.5,
emotion="",
style="",
language="zh-CN",
pitch=1.0,
)
def test_preview_cosyvoice_error_returns_502(self):
@@ -335,7 +339,9 @@ class TestTTSPreviewEndpoint:
voice_id="cosyvoice_actual_voice_123",
speed=1.0,
emotion="",
style="",
language="zh-CN",
pitch=1.0,
)
# Verify repo was queried with the UUID
mock_clone_repo.get.assert_called_once_with("abc123-uuid-of-profile")
@@ -413,7 +419,9 @@ class TestTTSPreviewEndpoint:
voice_id="longxiaoxia_v3",
speed=1.0,
emotion="",
style="",
language="zh-CN",
pitch=1.0,
)
def test_preview_clone_voice_wrong_user_returns_403(self):