aboutsummaryrefslogtreecommitdiff
path: root/app/tests/test_hub.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/tests/test_hub.py')
-rw-r--r--app/tests/test_hub.py7
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)