mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Sort the two key lists before comparing
We're coming from a dictionary for one of them, so let's give ourselves a fighting chance here.
This commit is contained in:
@@ -54,7 +54,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 list(pilot.app.screen._bindings.keys.keys()) != MOVEMENT_KEYS
|
||||
assert sorted(list(pilot.app.screen._bindings.keys.keys())) != sorted(MOVEMENT_KEYS)
|
||||
|
||||
|
||||
##############################################################################
|
||||
|
||||
Reference in New Issue
Block a user