From 5b98993b13dafe9a85495e4c68ad9b42863ef2bf Mon Sep 17 00:00:00 2001 From: historia Date: Thu, 27 Aug 2026 00:04:16 -0400 Subject: feat: separate venvs for qwen-tts and faster, manage (un)installs --- app/tests/test_backends_faster.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'app/tests/test_backends_faster.py') 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() -- cgit v1.2.3