Докачка моделей работает при любом способе запуска

Модель докачивалась только в launcher, но запуск бывает и напрямую через
app.main: у кого остался прежний start.bat, установка так и оставалась
незаконченной, а сообщение советовало download_models.bat, который тоже
устарел. Теперь проверка и докачка есть в обеих точках входа.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Vladimir Bryzgalov
2026-08-17 15:49:47 +05:00
co-authored by Claude Opus 5
parent 4b92a79671
commit 65fdb036ab
2 changed files with 20 additions and 5 deletions
+13
View File
@@ -57,3 +57,16 @@ class TestEnsure:
ensure_models(tmp_path, diarize=False, fetch=half)
assert not (tmp_path / "silero_vad.onnx").exists()
class TestEntryPoints:
"""Запуск бывает и через launcher, и напрямую через app.main."""
def test_both_entry_points_provision_models(self):
import inspect
import app.launcher
import app.main
for module in (app.launcher, app.main):
assert "ensure_models" in inspect.getsource(module), module.__name__