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:
Dave Pearson
2022-12-13 10:27:33 +00:00
parent 3bb7a99a0a
commit 4554904f2b

View File

@@ -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)
##############################################################################