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):