Skip to content

Commit b196d8c

Browse files
committed
Revert experimental backing out of recent changes
Didn't make a difference. CI on GitHub is still acting differently.
1 parent 76a22d8 commit b196d8c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/test_binding_inheritance.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ class PriorityOverlapWidget(Static, can_focus=True):
545545
"""A focusable widget with a priority binding."""
546546

547547
BINDINGS = [
548-
# Binding("0", "app.record('widget_0')", "0", priority=False),
548+
Binding("0", "app.record('widget_0')", "0", priority=False),
549549
Binding("a", "app.record('widget_a')", "a", priority=False),
550550
Binding("b", "app.record('widget_b')", "b", priority=False),
551551
Binding("c", "app.record('widget_c')", "c", priority=True),
@@ -559,7 +559,7 @@ class PriorityOverlapScreen(Screen):
559559
"""A screen with a priority binding."""
560560

561561
BINDINGS = [
562-
# Binding("0", "app.record('screen_0')", "0", priority=False),
562+
Binding("0", "app.record('screen_0')", "0", priority=False),
563563
Binding("a", "app.record('screen_a')", "a", priority=False),
564564
Binding("b", "app.record('screen_b')", "b", priority=True),
565565
Binding("c", "app.record('screen_c')", "c", priority=False),
@@ -579,7 +579,7 @@ class PriorityOverlapApp(AppKeyRecorder):
579579
"""An application with a priority binding."""
580580

581581
BINDINGS = [
582-
# Binding("0", "record('app_0')", "0", priority=False),
582+
Binding("0", "record('app_0')", "0", priority=False),
583583
Binding("a", "record('app_a')", "a", priority=True),
584584
Binding("b", "record('app_b')", "b", priority=False),
585585
Binding("c", "record('app_c')", "c", priority=False),
@@ -597,10 +597,10 @@ def on_mount(self) -> None:
597597
async def test_overlapping_priority_bindings() -> None:
598598
"""Test an app stack with overlapping bindings."""
599599
async with PriorityOverlapApp().run_test() as pilot:
600-
await pilot.press(*"abcdef")
600+
await pilot.press(*"0abcdef")
601601
await pilot.pause(2 / 100)
602602
assert pilot.app.pressed_keys == [
603-
# "widget_0",
603+
"widget_0",
604604
"app_a",
605605
"screen_b",
606606
"widget_c",

0 commit comments

Comments
 (0)