diff options
| author | historia <historiavg@proton.me> | 2026-09-01 03:38:50 -0400 |
|---|---|---|
| committer | historia <historiavg@proton.me> | 2026-09-01 03:38:50 -0400 |
| commit | d15adb490b634dd22a65a1c8d7f4ec9fa74816b4 (patch) | |
| tree | 8fc5da437ceffc22482968cdf7c2591c81a407cc /app/tests/test_tts.py | |
| parent | 058b19e7a65b40b1024a4fdeb2233062ff273cfd (diff) | |
| download | tts-audiobook-generator-d15adb490b634dd22a65a1c8d7f4ec9fa74816b4.tar.gz | |
fix: hide speech-to-speech only models from config wizard
Diffstat (limited to 'app/tests/test_tts.py')
| -rw-r--r-- | app/tests/test_tts.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/tests/test_tts.py b/app/tests/test_tts.py index 8403913..6c245e5 100644 --- a/app/tests/test_tts.py +++ b/app/tests/test_tts.py @@ -1051,7 +1051,9 @@ class AudioCppFamilyDetectionTests(unittest.TestCase): {"id": "tts-1", "family": "qwen3_tts", "task": "tts"}]}) message = str(ctx.exception) self.assertIn("personaplex", message) - self.assertIn("speech-to-speech", message) + self.assertIn("speech-to-speech, not TTS", message) + self.assertIn("cannot synthesize narration", message) + self.assertIn("Consider deleting the model", message) self.assertIn(_AUDIOCPP_MODEL_ID, message) self.assertIn("tts-1", message) @@ -1385,7 +1387,8 @@ class AudioCppDeterministicErrorTests(unittest.TestCase): def test_speech_to_speech_only_family_is_not_retryable_with_a_hint(self): exc = self._error("PersonaPlex supports only speech-to-speech sessions") self.assertIsInstance(exc, NonRetryableTTSError) - self.assertIn("cannot generate audiobooks", str(exc)) + self.assertIn("speech-to-speech, not TTS", str(exc)) + self.assertIn("Consider deleting the model", str(exc)) def test_unresolvable_clone_voice_is_not_retryable_with_a_hint(self): exc = self._error("Vevo2 requires target_voice or voice speaker audio") |
