Skip to content

Commit

Permalink
Be less explicit about checking for movement keys, check for any keys
Browse files Browse the repository at this point in the history
  • Loading branch information
davep committed Dec 14, 2022
1 parent d353188 commit d9e73b8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/test_binding_inheritance.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,7 @@ def on_mount(self) -> 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())


##############################################################################
Expand Down

0 comments on commit d9e73b8

Please sign in to comment.