diff options
Diffstat (limited to 'app/tests/test_runview.py')
| -rw-r--r-- | app/tests/test_runview.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/tests/test_runview.py b/app/tests/test_runview.py index df697c8..7006427 100644 --- a/app/tests/test_runview.py +++ b/app/tests/test_runview.py @@ -191,6 +191,14 @@ class RunLoopTests(_FakeTui, unittest.TestCase): # (started_server is False). self.assertEqual(view.phase, "done") + def test_run_leaves_the_screen_blocking_again(self): + # The timed redraw cadence must not leak into the hub: blocking + # input is restored so later dialogs (tui.flash) wait for keys. + view, screen = self.make_view(keys=[ord("x")]) + view._queue.put({"kind": "done", "ok": 1, "total": 1}) + view.run() + self.assertEqual(screen.timeouts[-1], -1) + def test_esc_cancels_and_confirms_stop_server(self): confirm_answers = [True, True] # cancel? yes; stop server? yes with patch.object(runview.tui, "confirm", |
