aboutsummaryrefslogtreecommitdiff
path: root/app/tests
diff options
context:
space:
mode:
Diffstat (limited to 'app/tests')
-rw-r--r--app/tests/test_hub.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/tests/test_hub.py b/app/tests/test_hub.py
index 86dd9e3..39b8c5a 100644
--- a/app/tests/test_hub.py
+++ b/app/tests/test_hub.py
@@ -2978,8 +2978,7 @@ class ConfigureBackendsDispatchTests(unittest.TestCase):
steps[0].work(emit, None)
mk_install.assert_called_once_with(
checkout, guidance, emit=emit, cancel=None)
- self.assertEqual(len(flashes), 1)
- self.assertEqual(flashes[0][1], "ok")
+ self.assertEqual(flashes, [])
def test_download_models_action_flashes_error_when_no_checkout(self):
patch_flash, flashes = self._capture_flashes()
@@ -3034,7 +3033,7 @@ class ConfigureBackendsDispatchTests(unittest.TestCase):
pass
steps[1].work(emit, "CANCEL")
self.assertEqual(calls, [("qwen", emit, "CANCEL")])
- self.assertEqual(flashes[-1][1], "ok")
+ self.assertEqual(flashes, [])
def test_update_backends_action_flashes_error_when_something_failed(self):
infos = [BackendInfo("qwen", "qwen-tts", lambda: None, lambda: 0,