From 50df082479ac1845518ff9e4849ed8c09afbdaf3 Mon Sep 17 00:00:00 2001 From: Dave Pearson Date: Thu, 15 Dec 2022 12:16:16 +0000 Subject: [PATCH] Keep black happy --- tests/test_binding_inheritance.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/tests/test_binding_inheritance.py b/tests/test_binding_inheritance.py index eb5c4c553..d176b8a74 100644 --- a/tests/test_binding_inheritance.py +++ b/tests/test_binding_inheritance.py @@ -88,6 +88,7 @@ async def test_just_app_low_priority_alpha_binding() -> None: assert pilot.app._bindings.get_key("ctrl+c").priority == True assert pilot.app._bindings.get_key("a").priority == False + ############################################################################## # A non-default screen with a single alpha key binding. # @@ -117,11 +118,15 @@ async def test_app_screen_with_bindings() -> None: # The screen will contain all of the movement keys, because it # inherits from Widget. That's fine. Let's check they're there, but # also let's check that they all have a non-priority binding. - assert all(pilot.app.screen._bindings.get_key(key).priority == False for key in MOVEMENT_KEYS) + assert all( + pilot.app.screen._bindings.get_key(key).priority == False + for key in MOVEMENT_KEYS + ) # Let's also check that the 'a' key is there, and it *is* a priority # binding. assert pilot.app.screen._bindings.get_key("a").priority == True + ############################################################################## # A non-default screen with a single low-priority alpha key binding. # @@ -152,7 +157,10 @@ async def test_app_screen_with_low_bindings() -> None: # Screens inherit from Widget which means they get movement keys # too, so let's ensure they're all in there, along with our own key, # and that everyone is low-priority. - assert all(pilot.app.screen._bindings.get_key(key).priority == False for key in ["a", *MOVEMENT_KEYS]) + assert all( + pilot.app.screen._bindings.get_key(key).priority == False + for key in ["a", *MOVEMENT_KEYS] + ) ##############################################################################