diff options
| author | historia <historiavg@proton.me> | 2026-08-26 17:46:48 -0400 |
|---|---|---|
| committer | historia <historiavg@proton.me> | 2026-08-26 17:46:48 -0400 |
| commit | 6ccb6d443d2fb871b43d96ea61a95bc3e6a92355 (patch) | |
| tree | d692ddccd6ec212cf4ebabb25a85e83af479d0fe /app/tests/test_hub.py | |
| parent | c147087c9d4707bffaeee58d390653637a21cce8 (diff) | |
| download | tts-audiobook-generator-6ccb6d443d2fb871b43d96ea61a95bc3e6a92355.tar.gz | |
feat: combined install/configure tui screens into one menu, removed extraneous wizard screens
Diffstat (limited to 'app/tests/test_hub.py')
| -rw-r--r-- | app/tests/test_hub.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/tests/test_hub.py b/app/tests/test_hub.py index d8a21bc..96e4706 100644 --- a/app/tests/test_hub.py +++ b/app/tests/test_hub.py @@ -1238,7 +1238,6 @@ class ConvertFlowTests(unittest.TestCase): self.assertEqual(cmd[1], hub.BACKEND_QWEN) self.assertEqual(cmd[2]["clone"], "/tmp/ref.wav") self.assertEqual(cmd[2]["api_url"], "http://10.0.0.5:7861") - fields = self.tui.forms_seen[0][1] self.assertEqual(self._field("mode")["choices"], [("Clone from a .wav file", "clone")]) @@ -2075,7 +2074,8 @@ class ConfigureBackendsDispatchTests(unittest.TestCase): self.assertEqual([step.title for step in steps], ["Uninstall qwen-tts"]) self.assertFalse(mk_run.call_args.kwargs["wait_on_finish"]) - emit = lambda line: None + def emit(line): + pass steps[0].work(emit, None) mk_uninstall.assert_called_once_with(emit=emit, cancel=None) self.assertIs(result, tui.Wizard.BACK) @@ -2213,7 +2213,8 @@ class ConfigureBackendsDispatchTests(unittest.TestCase): steps = mk_run.call_args[0][2] self.assertEqual([step.title for step in steps], ["Download missing models"]) - emit = lambda line: None + def emit(line): + pass steps[0].work(emit, None) mk_install.assert_called_once_with( checkout, guidance, emit=emit, cancel=None) |
