From 09fd71e8f65b9bd941e2691b504819699078495d Mon Sep 17 00:00:00 2001 From: Dave Pearson Date: Tue, 13 Dec 2022 12:28:23 +0000 Subject: [PATCH] Improve the name of one of the tests Just to make it a bit more clear what's going on and why. There's a fair bit goes into each of these tests and this module is in danger of getting quite messy. I may revisit the layout at some point just to make it all a lot more readable. --- tests/test_binding_inheritance.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_binding_inheritance.py b/tests/test_binding_inheritance.py index 5a21f8c18..eaf1b90b7 100644 --- a/tests/test_binding_inheritance.py +++ b/tests/test_binding_inheritance.py @@ -146,7 +146,7 @@ async def test_pressing_movement_keys_app() -> None: ############################################################################## -class WidgetWithBindings(Static, can_focus=True): +class FocusableWidgetWithBindings(Static, can_focus=True): """A widget that has its own bindings for the movement keys.""" BINDINGS = [ @@ -163,10 +163,10 @@ class AppWithWidgetWithBindings(AppKeyRecorder): """A test app that composes with a widget that has movement bindings.""" def compose(self) -> ComposeResult: - yield WidgetWithBindings() + yield FocusableWidgetWithBindings() def on_mount(self) -> None: - self.query_one(WidgetWithBindings).focus() + self.query_one(FocusableWidgetWithBindings).focus() async def test_focused_child_widget_with_movement_bindings() -> None: