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

Function test_pointer_shape

tests/test_app.py:392–405  ·  view source on GitHub ↗

Test that the pointer shape updates.

()

Source from the content-addressed store, hash-verified

390
391
392async def test_pointer_shape() -> None:
393 """Test that the pointer shape updates."""
394
395 class PointerApp(App):
396 def compose(self) -> ComposeResult:
397 yield Static("Hello")
398 yield Button("Click me")
399
400 app = PointerApp()
401 async with app.run_test() as pilot:
402 await pilot.hover(offset=(0, 0))
403 assert app.screen._pointer_shape == "default"
404 await pilot.hover(offset=(1, 1))
405 assert app.screen._pointer_shape == "pointer"
406
407
408async def test_get_screen_stack() -> None:

Callers

nothing calls this directly

Calls 3

PointerAppClass · 0.85
run_testMethod · 0.80
hoverMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…