@@ -179,7 +179,7 @@ class AppKeyRecorder(App[None]):
179179 """list[str]: All the test keys."""
180180
181181 @staticmethod
182- def mk_bindings (action_prefix : str = "" ) -> list [Binding ]:
182+ def make_bindings (action_prefix : str = "" ) -> list [Binding ]:
183183 """Make the binding list for testing an app.
184184
185185 Args:
@@ -227,7 +227,7 @@ def all_recorded(self, marker_prefix: str = "") -> None:
227227class AppWithMovementKeysBound (AppKeyRecorder ):
228228 """An application with bindings."""
229229
230- BINDINGS = AppKeyRecorder .mk_bindings ()
230+ BINDINGS = AppKeyRecorder .make_bindings ()
231231
232232
233233async def test_pressing_alpha_on_app () -> None :
@@ -259,7 +259,7 @@ async def test_pressing_movement_keys_app() -> None:
259259class FocusableWidgetWithBindings (Static , can_focus = True ):
260260 """A widget that has its own bindings for the movement keys."""
261261
262- BINDINGS = AppKeyRecorder .mk_bindings ("local_" )
262+ BINDINGS = AppKeyRecorder .make_bindings ("local_" )
263263
264264 async def action_local_record (self , key : str ) -> None :
265265 # Sneaky forward reference. Just for the purposes of testing.
@@ -301,7 +301,7 @@ class FocusableWidgetWithNoBindings(Static, can_focus=True):
301301class ScreenWithMovementBindings (Screen ):
302302 """A screen that binds keys, including movement keys."""
303303
304- BINDINGS = AppKeyRecorder .mk_bindings ("screen_" )
304+ BINDINGS = AppKeyRecorder .make_bindings ("screen_" )
305305
306306 async def action_screen_record (self , key : str ) -> None :
307307 # Sneaky forward reference. Just for the purposes of testing.
@@ -344,7 +344,7 @@ async def test_focused_child_widget_with_movement_bindings_on_screen() -> None:
344344class ScreenWithMovementBindingsAndContainerAroundWidget (Screen ):
345345 """A screen that binds keys, including movement keys."""
346346
347- BINDINGS = AppKeyRecorder .mk_bindings ("screen_" )
347+ BINDINGS = AppKeyRecorder .make_bindings ("screen_" )
348348
349349 async def action_screen_record (self , key : str ) -> None :
350350 # Sneaky forward reference. Just for the purposes of testing.
@@ -388,7 +388,7 @@ async def test_contained_focused_child_widget_with_movement_bindings_on_screen()
388388class WidgetWithBindingsNoInherit (Static , can_focus = True , inherit_bindings = False ):
389389 """A widget that has its own bindings for the movement keys, no binding inheritance."""
390390
391- BINDINGS = AppKeyRecorder .mk_bindings ("local_" )
391+ BINDINGS = AppKeyRecorder .make_bindings ("local_" )
392392
393393 async def action_local_record (self , key : str ) -> None :
394394 # Sneaky forward reference. Just for the purposes of testing.
@@ -435,7 +435,7 @@ class FocusableWidgetWithNoBindingsNoInherit(
435435class ScreenWithMovementBindingsNoInheritChild (Screen ):
436436 """A screen that binds keys, including movement keys."""
437437
438- BINDINGS = AppKeyRecorder .mk_bindings ("screen_" )
438+ BINDINGS = AppKeyRecorder .make_bindings ("screen_" )
439439
440440 async def action_screen_record (self , key : str ) -> None :
441441 # Sneaky forward reference. Just for the purposes of testing.
@@ -490,7 +490,7 @@ class FocusableWidgetWithEmptyBindingsNoInherit(
490490class ScreenWithMovementBindingsNoInheritEmptyChild (Screen ):
491491 """A screen that binds keys, including movement keys."""
492492
493- BINDINGS = AppKeyRecorder .mk_bindings ("screen_" )
493+ BINDINGS = AppKeyRecorder .make_bindings ("screen_" )
494494
495495 async def action_screen_record (self , key : str ) -> None :
496496 # Sneaky forward reference. Just for the purposes of testing.
0 commit comments