Improve and fix test_is_printable
This commit is contained in:
parent
d9a88e139c
commit
e306e2dadb
@ -186,14 +186,17 @@ 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_Backtab, False),
|
||||
(Qt.Key_Backspace, False),
|
||||
(Qt.Key_Return, False),
|
||||
(Qt.Key_Enter, False),
|
||||
(Qt.Key_X | Qt.ControlModifier, False), # Wrong usage
|
||||
|
||||
(Qt.Key_Space, True),
|
||||
(Qt.Key_ydiaeresis, True),
|
||||
(Qt.Key_X, True)
|
||||
(Qt.Key_X, True),
|
||||
])
|
||||
def test_is_printable(key, printable):
|
||||
assert keyutils.is_printable(key) == printable
|
||||
|
Loading…
Reference in New Issue
Block a user