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

Function test_mouse_navigation_messages

tests/test_tabs.py:482–493  ·  view source on GitHub ↗

Mouse navigation should result in the expected messages.

()

Source from the content-addressed store, hash-verified

480
481
482async def test_mouse_navigation_messages():
483 """Mouse navigation should result in the expected messages."""
484 async with TabsMessageCatchApp().run_test() as pilot:
485 await pilot.click("#tab-2")
486 await pilot.pause()
487 await pilot.click("Underline", offset=(2, 0))
488 await pilot.pause()
489 assert pilot.app.intended_handlers == [
490 "on_tabs_tab_activated",
491 "on_tabs_tab_activated",
492 "on_tabs_tab_activated",
493 ]
494
495
496async def test_disabled_tab_is_not_activated_by_clicking_underline():

Callers

nothing calls this directly

Calls 4

TabsMessageCatchAppClass · 0.85
run_testMethod · 0.80
clickMethod · 0.80
pauseMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…