aboutsummaryrefslogtreecommitdiff
path: root/app/tests/test_backends.py
diff options
context:
space:
mode:
authorhistoria <historiavg@proton.me>2026-08-28 02:27:10 -0400
committerhistoria <historiavg@proton.me>2026-08-28 02:27:10 -0400
commita7c653313d2bb1e185cfbc3f0f52c2fe33218600 (patch)
treef28f57fa5509ddb54176116cc4cc1198d034e9ff /app/tests/test_backends.py
parent975053f1789771ba5cb9dbe50ba7fe0aa396f0ab (diff)
downloadtts-audiobook-generator-a7c653313d2bb1e185cfbc3f0f52c2fe33218600.tar.gz
feat: qwen-tts backend widgets updated to same style as audio.cpp
Diffstat (limited to 'app/tests/test_backends.py')
-rw-r--r--app/tests/test_backends.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/app/tests/test_backends.py b/app/tests/test_backends.py
index a49a2f2..09ad3cc 100644
--- a/app/tests/test_backends.py
+++ b/app/tests/test_backends.py
@@ -651,8 +651,14 @@ class QwenModelsScreenTests(unittest.TestCase):
("Install VoiceDesign", ("install", "VoiceDesign")),
])
self.assertEqual(kwargs["table_title"], "Model State")
- self.assertEqual(kwargs["table_rows"][0],
- ("CustomVoice", "installed", "ok"))
+ # Every row is a (name, status, kind) triple: tui.menu reads
+ # row[2] for the status color, so a short row crashes the menu
+ # with "tuple index out of range".
+ self.assertEqual(kwargs["table_rows"], [
+ ("CustomVoice", "installed", "ok"),
+ ("Base", "not installed", "warn"),
+ ("VoiceDesign", "not installed", "warn"),
+ ])
def test_install_action_runs_a_download_step_in_the_task_view(self):
from backends import qwen