@@ -39,10 +39,8 @@ class NoBindings(App[None]):
3939async def test_just_app_no_bindings () -> None :
4040 """An app with no bindings should have no bindings, other than ctrl+c."""
4141 async with NoBindings ().run_test () as pilot :
42- assert list (pilot .app ._bindings .keys .keys ()) == ["ctrl+c" , "tab" , "shift+tab" ]
42+ assert list (pilot .app ._bindings .keys .keys ()) == ["ctrl+c" ]
4343 assert pilot .app ._bindings .get_key ("ctrl+c" ).priority is True
44- assert pilot .app ._bindings .get_key ("tab" ).priority is False
45- assert pilot .app ._bindings .get_key ("shift+tab" ).priority is False
4644
4745
4846##############################################################################
@@ -63,9 +61,7 @@ class AlphaBinding(App[None]):
6361async def test_just_app_alpha_binding () -> None :
6462 """An app with a single binding should have just the one binding."""
6563 async with AlphaBinding ().run_test () as pilot :
66- assert sorted (pilot .app ._bindings .keys .keys ()) == sorted (
67- ["ctrl+c" , "tab" , "shift+tab" , "a" ]
68- )
64+ assert sorted (pilot .app ._bindings .keys .keys ()) == sorted (["ctrl+c" , "a" ])
6965 assert pilot .app ._bindings .get_key ("ctrl+c" ).priority is True
7066 assert pilot .app ._bindings .get_key ("a" ).priority is True
7167
@@ -87,9 +83,7 @@ class LowAlphaBinding(App[None]):
8783async def test_just_app_low_priority_alpha_binding () -> None :
8884 """An app with a single low-priority binding should have just the one binding."""
8985 async with LowAlphaBinding ().run_test () as pilot :
90- assert sorted (pilot .app ._bindings .keys .keys ()) == sorted (
91- ["ctrl+c" , "tab" , "shift+tab" , "a" ]
92- )
86+ assert sorted (pilot .app ._bindings .keys .keys ()) == sorted (["ctrl+c" , "a" ])
9387 assert pilot .app ._bindings .get_key ("ctrl+c" ).priority is True
9488 assert pilot .app ._bindings .get_key ("a" ).priority is False
9589
0 commit comments