aboutsummaryrefslogtreecommitdiff
path: root/app/tests/test_backends_servers.py
diff options
context:
space:
mode:
authorhistoria <historiavg@proton.me>2026-09-02 19:13:24 -0400
committerhistoria <historiavg@proton.me>2026-09-02 19:13:24 -0400
commit6804c785c6b506c47b45264398728d0a609310be (patch)
tree0b95361d84a32d5b26e94f54530437a48f34d1c8 /app/tests/test_backends_servers.py
parent268b6734b22cc251bf340882ea9debbd079b9a48 (diff)
downloadtts-audiobook-generator-6804c785c6b506c47b45264398728d0a609310be.tar.gz
feat: sglang-omni model picker on manual server launch
Diffstat (limited to 'app/tests/test_backends_servers.py')
-rw-r--r--app/tests/test_backends_servers.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/tests/test_backends_servers.py b/app/tests/test_backends_servers.py
index 4065a34..569c7bd 100644
--- a/app/tests/test_backends_servers.py
+++ b/app/tests/test_backends_servers.py
@@ -160,6 +160,14 @@ class StartTests(unittest.TestCase):
'architecture")', "y"]))
self.assertIsNone(servers._boot_hint([]))
+ def test_boot_hint_names_missing_companion_packages(self):
+ # A model whose companion pip packages are absent from the backend
+ # venv (e.g. sglang-omni's Qwen3-TTS models need qwen_tts) dies on
+ # the import; the hint says what to do about it.
+ self.assertIn("companion", servers._boot_hint(
+ ['File "...", in resolve_checkpoint',
+ "ModuleNotFoundError: No module named 'qwen_tts'"]))
+
def test_console_progress_prints_the_hint(self):
out = io.StringIO()
with redirect_stdout(out):