From 867866f131b0b6c76c54272791e7f7dea01db990 Mon Sep 17 00:00:00 2001 From: historia Date: Tue, 25 Aug 2026 16:40:30 -0400 Subject: feat: better tui menu option gating for models that support custom voices (qwen) and models that do not support instructions --- app/tests/test_tui.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'app/tests/test_tui.py') diff --git a/app/tests/test_tui.py b/app/tests/test_tui.py index 964f983..543194e 100644 --- a/app/tests/test_tui.py +++ b/app/tests/test_tui.py @@ -204,6 +204,17 @@ class MenuTests(TuiTestCase): self.assertGreater(help_x, margin) self.assert_inside_border(screen) + def test_blank_line_below_the_title(self): + # A titled dialog reserves a blank line between the title row + # and the first body row. + screen = FakeScreen(keys=[10]) + tui.menu(screen, "Pick", self.OPTIONS) + title_y = next(y for y, _, text, _ in screen.strings + if text == " Pick ") + first_y = next(y for y, _, text, _ in screen.strings + if text == "first option") + self.assertEqual(first_y, title_y + 2) + def test_up_wraps_around_to_last_option(self): screen = FakeScreen(keys=[FakeCurses.KEY_UP, 10]) value = tui.menu(screen, "Pick one", self.OPTIONS) -- cgit v1.2.3