parent
e2f17c4be1
commit
88a5c8d29d
@ -185,6 +185,12 @@ class TestHandle:
|
|||||||
keyparser.execute.assert_called_once_with('message-info 0', None)
|
keyparser.execute.assert_called_once_with('message-info 0', None)
|
||||||
assert not keyparser._sequence
|
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):
|
def test_mapping(self, config_stub, handle_text, keyparser):
|
||||||
handle_text(Qt.Key_X)
|
handle_text(Qt.Key_X)
|
||||||
keyparser.execute.assert_called_once_with('message-info a', None)
|
keyparser.execute.assert_called_once_with('message-info a', None)
|
||||||
|
Loading…
Reference in New Issue
Block a user