(widget, flow, keymap, is_root_widget)
| 42 | ], |
| 43 | ) |
| 44 | def test_quickhelp(widget, flow, keymap, is_root_widget): |
| 45 | qh = quickhelp.make(widget, flow, is_root_widget) |
| 46 | for row in [qh.top_items, qh.bottom_items]: |
| 47 | for title, v in row.items(): |
| 48 | if isinstance(v, quickhelp.BasicKeyHelp): |
| 49 | key_short = v.key |
| 50 | else: |
| 51 | b = keymap.binding_for_help(v) |
| 52 | if b is None: |
| 53 | raise AssertionError(f"No binding found for help text: {v}") |
| 54 | key_short = b.key_short() |
| 55 | assert len(key_short) + len(title) < 14 |
| 56 | |
| 57 | |
| 58 | def test_make_rows(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…