If there is a tooltip, it should show.
()
| 44 | |
| 45 | |
| 46 | async def test_tip_gets_a_tooltip() -> None: |
| 47 | """If there is a tooltip, it should show.""" |
| 48 | async with TooltipApp().run_test(tooltips=True) as pilot: |
| 49 | assert pilot.app.query_one("#textual-tooltip").display is False |
| 50 | await pilot.hover("#mr-blue") |
| 51 | assert pilot.app.query_one("#textual-tooltip").display is False |
| 52 | await pilot.pause(TOOLTIP_TIMEOUT) |
| 53 | assert pilot.app.query_one("#textual-tooltip").display is True |
| 54 | |
| 55 | |
| 56 | async def test_mouse_move_removes_a_tooltip() -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…