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

Function test_pressing_alpha_on_app

tests/test_binding_inheritance.py:224–229  ·  view source on GitHub ↗

Test that pressing the alpha key, when it's bound on the app, results in an action fire.

()

Source from the content-addressed store, hash-verified

222
223
224async def test_pressing_alpha_on_app() -> None:
225 """Test that pressing the alpha key, when it's bound on the app, results in an action fire."""
226 async with AppWithMovementKeysBound().run_test() as pilot:
227 await pilot.press(*AppKeyRecorder.ALPHAS)
228 await pilot.pause()
229 assert pilot.app.pressed_keys == [*AppKeyRecorder.ALPHAS]
230
231
232async def test_pressing_movement_keys_app() -> None:

Callers

nothing calls this directly

Calls 4

run_testMethod · 0.80
pressMethod · 0.45
pauseMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…