aboutsummaryrefslogtreecommitdiff
path: root/app/tests/test_converter_progress.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/tests/test_converter_progress.py')
-rw-r--r--app/tests/test_converter_progress.py13
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):