_mapping_test.py 412 B

1234567891011
  1. # pylint: disable=protected-access
  2. from rescriptoon._actions import RewriteKeyEventAction
  3. from rescriptoon._mapping import get_keycode_action_mapping
  4. from Xlib import XK
  5. def test_get_keycode_action_mapping():
  6. mapping = get_keycode_action_mapping()
  7. assert isinstance(mapping[25], RewriteKeyEventAction)
  8. # pylint: disable=no-member; false positive for XK.*
  9. assert mapping[25]._keysym == XK.XK_Up