aboutsummaryrefslogtreecommitdiff
path: root/app/tests/test_backends_servers.py
diff options
context:
space:
mode:
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):