From d9a88e139c3a6dc4a4d09600f13f03cc2bb8a689 Mon Sep 17 00:00:00 2001 From: Fritz Reichwald Date: Fri, 2 Mar 2018 12:54:29 +0100 Subject: [PATCH] Test for modifiers and corner case 0xFF --- tests/unit/keyinput/test_keyutils.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/unit/keyinput/test_keyutils.py b/tests/unit/keyinput/test_keyutils.py index 25fe8e50e..2d6e6310a 100644 --- a/tests/unit/keyinput/test_keyutils.py +++ b/tests/unit/keyinput/test_keyutils.py @@ -186,6 +186,13 @@ def test_normalize_keystr(orig, normalized): @pytest.mark.parametrize('key, printable', [ (Qt.Key_Control, False), + (Qt.Key_Space, False), + (Qt.Key_Escape, False), + (Qt.Key_Tab, False), + (Qt.Key_Backspace, False), + (Qt.Key_Return, False), + (Qt.Key_Enter, False), + (Qt.Key_ydiaeresis, True), (Qt.Key_X, True) ]) def test_is_printable(key, printable):