test(moss-tts-nano): its fake venv carries the completion marker
This commit is contained in:
@@ -120,7 +120,7 @@ def test_the_sidecar_imports_nothing_from_the_app():
|
||||
def test_the_class_switches_to_the_sidecar_once_its_venv_exists(monkeypatch, tmp_path):
|
||||
from engines.moss_tts_nano_subprocess import MossTTSNanoSubprocessBackend
|
||||
from services import tts_backend
|
||||
from services.sidecar_install import _venv_python
|
||||
from services.sidecar_install import _INSTALL_COMPLETE_MARKER, _venv_python
|
||||
|
||||
monkeypatch.setenv("OMNIVOICE_MOSS_TTS_NANO_DIR", "")
|
||||
monkeypatch.delenv("OMNIVOICE_MOSS_TTS_NANO_DIR")
|
||||
@@ -129,6 +129,7 @@ def test_the_class_switches_to_the_sidecar_once_its_venv_exists(monkeypatch, tmp
|
||||
py = _venv_python(tmp_path / ".venv")
|
||||
py.parent.mkdir(parents=True)
|
||||
py.write_text("#!fake\n")
|
||||
(tmp_path / _INSTALL_COMPLETE_MARKER).write_text("x\n", encoding="utf-8")
|
||||
monkeypatch.setenv("OMNIVOICE_MOSS_TTS_NANO_DIR", str(tmp_path))
|
||||
|
||||
cls = tts_backend.get_backend_class("moss-tts-nano")
|
||||
|
||||
Reference in New Issue
Block a user