From 88a5c8d29dd42539d28d269b85d6b6f4f1f7c89c Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Sun, 4 Mar 2018 22:38:33 +0100 Subject: [PATCH] Make sure bindings with umlauts work See #303 --- tests/unit/keyinput/test_basekeyparser.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/unit/keyinput/test_basekeyparser.py b/tests/unit/keyinput/test_basekeyparser.py index 893836335..9ed996922 100644 --- a/tests/unit/keyinput/test_basekeyparser.py +++ b/tests/unit/keyinput/test_basekeyparser.py @@ -185,6 +185,12 @@ class TestHandle: keyparser.execute.assert_called_once_with('message-info 0', None) assert not keyparser._sequence + def test_umlauts(self, handle_text, keyparser, config_stub): + config_stub.val.bindings.commands = {'normal': {'ü': 'message-info ü'}} + keyparser._read_config('normal') + handle_text(Qt.Key_Udiaeresis) + keyparser.execute.assert_called_once_with('message-info ü', None) + def test_mapping(self, config_stub, handle_text, keyparser): handle_text(Qt.Key_X) keyparser.execute.assert_called_once_with('message-info a', None)