Skip to content

Commit 938cd3b

Browse files
committed
Namespace the recording actions
Wondering if this is the issue with why the tests have stopped working in GitHub; but also not *really* confused as to why they were working in the first place.
1 parent 2f77bab commit 938cd3b

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

tests/test_binding_inheritance.py

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

547547
BINDINGS = [
548-
Binding("0", "record('widget_0')", "0", priority=False),
549-
Binding("a", "record('widget_a')", "a", priority=False),
550-
Binding("b", "record('widget_b')", "b", priority=False),
551-
Binding("c", "record('widget_c')", "c", priority=True),
552-
Binding("d", "record('widget_d')", "d", priority=False),
553-
Binding("e", "record('widget_e')", "e", priority=True),
554-
Binding("f", "record('widget_f')", "f", priority=True),
548+
Binding("0", "app.record('widget_0')", "0", priority=False),
549+
Binding("a", "app.record('widget_a')", "a", priority=False),
550+
Binding("b", "app.record('widget_b')", "b", priority=False),
551+
Binding("c", "app.record('widget_c')", "c", priority=True),
552+
Binding("d", "app.record('widget_d')", "d", priority=False),
553+
Binding("e", "app.record('widget_e')", "e", priority=True),
554+
Binding("f", "app.record('widget_f')", "f", priority=True),
555555
]
556556

557557

558558
class PriorityOverlapScreen(Screen):
559559
"""A screen with a priority binding."""
560560

561561
BINDINGS = [
562-
Binding("0", "record('screen_0')", "0", priority=False),
563-
Binding("a", "record('screen_a')", "a", priority=False),
564-
Binding("b", "record('screen_b')", "b", priority=True),
565-
Binding("c", "record('screen_c')", "c", priority=False),
566-
Binding("d", "record('screen_d')", "c", priority=True),
567-
Binding("e", "record('screen_e')", "e", priority=False),
568-
Binding("f", "record('screen_f')", "f", priority=True),
562+
Binding("0", "app.record('screen_0')", "0", priority=False),
563+
Binding("a", "app.record('screen_a')", "a", priority=False),
564+
Binding("b", "app.record('screen_b')", "b", priority=True),
565+
Binding("c", "app.record('screen_c')", "c", priority=False),
566+
Binding("d", "app.record('screen_d')", "c", priority=True),
567+
Binding("e", "app.record('screen_e')", "e", priority=False),
568+
Binding("f", "app.record('screen_f')", "f", priority=True),
569569
]
570570

571571
def compose(self) -> ComposeResult:
@@ -598,7 +598,7 @@ async def test_overlapping_priority_bindings() -> None:
598598
"""Test an app stack with overlapping bindings."""
599599
async with PriorityOverlapApp().run_test() as pilot:
600600
await pilot.press(*"0abcdef")
601-
await pilot.pause(5 / 100)
601+
await pilot.pause(2 / 100)
602602
assert pilot.app.pressed_keys == [
603603
"widget_0",
604604
"app_a",

0 commit comments

Comments
 (0)