aboutsummaryrefslogtreecommitdiff
path: root/app/tests/test_backends_faster.py
diff options
context:
space:
mode:
authorhistoria <historiavg@proton.me>2026-08-27 00:04:16 -0400
committerhistoria <historiavg@proton.me>2026-08-27 00:04:16 -0400
commit5b98993b13dafe9a85495e4c68ad9b42863ef2bf (patch)
tree57db1566deb5351ec6bfb8c70de4126bbc5fc2da /app/tests/test_backends_faster.py
parentf18f421d9180ae0e3bff9496b1fdaf53d3624a75 (diff)
downloadtts-audiobook-generator-5b98993b13dafe9a85495e4c68ad9b42863ef2bf.tar.gz
feat: separate venvs for qwen-tts and faster, manage (un)installs
Diffstat (limited to 'app/tests/test_backends_faster.py')
-rw-r--r--app/tests/test_backends_faster.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/app/tests/test_backends_faster.py b/app/tests/test_backends_faster.py
index a093fbe..8f024bf 100644
--- a/app/tests/test_backends_faster.py
+++ b/app/tests/test_backends_faster.py
@@ -419,8 +419,10 @@ class UninstallTests(unittest.TestCase):
rc = make_voices.uninstall(emit="EMIT")
self.assertEqual(rc, 0)
mk_stop.assert_called_once_with("faster")
- # The task view's emit is forwarded so pip never touches the terminal.
- mk_pip.assert_called_once_with(["faster-qwen3-tts"], emit="EMIT")
+ # The task view's emit is forwarded so pip never touches the terminal,
+ # and the package comes out of the faster backend's own venv.
+ mk_pip.assert_called_once_with(["faster-qwen3-tts"], emit="EMIT",
+ env_dir=make_voices.FASTER_ENV)
self.assertFalse(checkout.exists())
def test_no_checkout_still_uninstalls_the_package(self):
@@ -435,7 +437,8 @@ class UninstallTests(unittest.TestCase):
self.assertEqual(rc, 0)
# No pid file: no stop attempt (and no noise about it).
mk_stop.assert_not_called()
- mk_pip.assert_called_once_with(["faster-qwen3-tts"], emit=None)
+ mk_pip.assert_called_once_with(["faster-qwen3-tts"], emit=None,
+ env_dir=make_voices.FASTER_ENV)
def test_cancel_before_pip_skips_everything_after_stopping(self):
cancel = threading.Event()