diff options
| author | historia <historiavg@proton.me> | 2026-08-26 21:22:40 -0400 |
|---|---|---|
| committer | historia <historiavg@proton.me> | 2026-08-26 21:22:40 -0400 |
| commit | 477ac3e827e3bdc9f14583fc3aa8db1fa2d27c52 (patch) | |
| tree | 1e21fa5af1d7a95ffc62fb03eed153056c38ae9e /app/tests/test_converter_progress.py | |
| parent | 65c6f737f1545ef225768af897acd20f163a4fb4 (diff) | |
| download | tts-audiobook-generator-477ac3e827e3bdc9f14583fc3aa8db1fa2d27c52.tar.gz | |
feat: design model support for qwen-tts backend. remove unnecessary port split for qwen models
Diffstat (limited to 'app/tests/test_converter_progress.py')
| -rw-r--r-- | app/tests/test_converter_progress.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app/tests/test_converter_progress.py b/app/tests/test_converter_progress.py index 2c9c330..9a1147c 100644 --- a/app/tests/test_converter_progress.py +++ b/app/tests/test_converter_progress.py @@ -20,6 +20,7 @@ from converter.clients import ( BACKEND_QWEN, VOICE_MODE_CLONE, VOICE_MODE_CUSTOM, + VOICE_MODE_DESIGN, ) from converter import converter as converter_mod from converter.converter import ( @@ -51,6 +52,18 @@ class VoiceModeForTests(unittest.TestCase): self.assertEqual(voice_mode_for(BACKEND_QWEN), VOICE_MODE_CUSTOM) + def test_qwen_instructions_design(self): + # Qwen: instructions alone select the VoiceDesign model, taking + # precedence over a clone reference. + self.assertEqual(voice_mode_for(BACKEND_QWEN, + instructions="A warm narrator"), + VOICE_MODE_DESIGN) + self.assertEqual(voice_mode_for(BACKEND_QWEN, clone="x.wav", + instructions="A warm narrator"), + VOICE_MODE_DESIGN) + self.assertEqual(voice_mode_for(BACKEND_QWEN, instructions=" "), + VOICE_MODE_CUSTOM) + class PromptOverwriteConfirmTests(unittest.TestCase): def test_confirm_callback_receives_message_and_default(self): |
