From bc885cc9ee8ae71269e05f764222a3395967ef70 Mon Sep 17 00:00:00 2001 From: George Edward Bulmer Date: Tue, 20 Mar 2018 23:19:36 +0000 Subject: [PATCH] Modify the keypad test The new behaviour is for the keypad to yield its usual key, such that instead of a special keypress, it yields <2> --- tests/unit/keyinput/test_basekeyparser.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/unit/keyinput/test_basekeyparser.py b/tests/unit/keyinput/test_basekeyparser.py index 7915e2b75..732c62162 100644 --- a/tests/unit/keyinput/test_basekeyparser.py +++ b/tests/unit/keyinput/test_basekeyparser.py @@ -215,14 +215,14 @@ class TestHandle: @pytest.mark.parametrize('modifiers, text', [ (Qt.NoModifier, '2'), - (Qt.KeypadModifier, 'num-2'), + (Qt.KeypadModifier, '2'), ]) def test_number_press_keypad(self, fake_keyevent, keyparser, config_stub, modifiers, text): - """Make sure a binding overrides the 2 binding.""" + """Make sure a binding yields the 2 binding.""" config_stub.val.bindings.commands = {'normal': { '2': 'message-info 2', - '': 'message-info num-2'}} + '': 'message-info 2'}} keyparser._read_config('normal') keyparser.handle(fake_keyevent(Qt.Key_2, modifiers)) command = 'message-info {}'.format(text)