mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
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:
@@ -93,9 +93,7 @@ class AppWithScreenNoBindings(App[None]):
|
|||||||
async def test_app_screen_has_no_movement_bindings() -> None:
|
async def test_app_screen_has_no_movement_bindings() -> None:
|
||||||
"""A screen with no bindings should not have movement key bindings."""
|
"""A screen with no bindings should not have movement key bindings."""
|
||||||
async with AppWithScreenNoBindings().run_test() as pilot:
|
async with AppWithScreenNoBindings().run_test() as pilot:
|
||||||
assert sorted(list(pilot.app.screen._bindings.keys.keys())) != sorted(
|
assert not list(pilot.app.screen._bindings.keys.keys())
|
||||||
MOVEMENT_KEYS
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|||||||
Reference in New Issue
Block a user