MCPcopy
hub / github.com/Textualize/textual / test_tip_gets_a_tooltip

Function test_tip_gets_a_tooltip

tests/test_tooltips.py:46–53  ·  view source on GitHub ↗

If there is a tooltip, it should show.

()

Source from the content-addressed store, hash-verified

44
45
46async 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
56async def test_mouse_move_removes_a_tooltip() -> None:

Callers

nothing calls this directly

Calls 5

run_testMethod · 0.80
query_oneMethod · 0.80
hoverMethod · 0.80
TooltipAppClass · 0.70
pauseMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…