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

Function test_overlapping_priority_bindings

tests/test_binding_inheritance.py:593–605  ·  view source on GitHub ↗

Test an app stack with overlapping bindings.

()

Source from the content-addressed store, hash-verified

591
592
593async def test_overlapping_priority_bindings() -> None:
594 """Test an app stack with overlapping bindings."""
595 async with PriorityOverlapApp().run_test() as pilot:
596 await pilot.press(*"0abcdef")
597 assert pilot.app.pressed_keys == [
598 "widget_0",
599 "app_a",
600 "screen_b",
601 "widget_c",
602 "app_d",
603 "app_e",
604 "screen_f",
605 ]
606
607
608async def test_skip_action() -> None:

Callers

nothing calls this directly

Calls 3

PriorityOverlapAppClass · 0.85
run_testMethod · 0.80
pressMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…