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