Exemplo n.º 1
0
 def test_missing(self, monkeypatch):
     monkeypatch.delattr(keyutils.Qt, 'Key_AltGr')
     # We don't want to test the key which is actually missing - we only
     # want to know if the mapping still behaves properly.
     assert keyutils._key_to_string(Qt.Key_A) == 'A'
Exemplo n.º 2
0
 def test_missing(self, monkeypatch):
     monkeypatch.delattr(keyutils.Qt, 'Key_AltGr')
     # We don't want to test the key which is actually missing - we only
     # want to know if the mapping still behaves properly.
     assert keyutils._key_to_string(Qt.Key_A) == 'A'
Exemplo n.º 3
0
 def test_to_string(self, qt_key):
     assert keyutils._key_to_string(qt_key.member) == qt_key.name
Exemplo n.º 4
0
 def test_to_string(self, qt_key):
     assert keyutils._key_to_string(qt_key.member) == qt_key.name