From f4069f8cb7bd71418147a61cbecc4c5c3fa2f31d Mon Sep 17 00:00:00 2001 From: saas-backend Date: Mon, 21 Sep 2026 00:27:48 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E5=90=8C=E6=AD=A5=20develop=20TTS=20?= =?UTF-8?q?=E9=A2=84=E8=A7=88=E6=8E=A5=E5=8F=A3=E6=96=B0=E5=A2=9E=20style/?= =?UTF-8?q?pitch=20=E5=8F=82=E6=95=B0=E7=9A=84=E6=96=AD=E8=A8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit develop 上 TTS preview 新增 style、pitch 参数透传,补齐对应单测断言 Merge branch 'origin/develop' into feat/2001-booming-title-style --- tests/unit/test_tts_preview.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/unit/test_tts_preview.py b/tests/unit/test_tts_preview.py index c3fae5822..cc7dc7b3c 100644 --- a/tests/unit/test_tts_preview.py +++ b/tests/unit/test_tts_preview.py @@ -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):