Be less explicit about checking for movement keys, check for any keys

See https://github.com/Textualize/textual/pull/1346#discussion_r1048330186
This commit is contained in:
Dave Pearson
2022-12-14 11:12:46 +00:00
parent d353188c24
commit d9e73b82f5

View File

@@ -93,9 +93,7 @@ class AppWithScreenNoBindings(App[None]):
async def test_app_screen_has_no_movement_bindings() -> None:
"""A screen with no bindings should not have movement key bindings."""
async with AppWithScreenNoBindings().run_test() as pilot:
assert sorted(list(pilot.app.screen._bindings.keys.keys())) != sorted(
MOVEMENT_KEYS
)
assert not list(pilot.app.screen._bindings.keys.keys())
##############################################################################