Skip to content

Commit

Permalink
we have to query the keymap to get properties
Browse files Browse the repository at this point in the history
also, there are fewer properties now that we removed legacy mode
  • Loading branch information
totaam committed Aug 30, 2022
1 parent bdf1697 commit 88fba99
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/unittests/unit/client/keyboard_helper_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ def checkmask(mask, *modifiers):

def test_keymap_properties(self):
kh = KeyboardHelper(None)
kh.query_xkbmap()
p = kh.get_keymap_properties()
assert p and len(p)>10
assert p, "no keymap properties returned"
assert len(p)>=8, "not enough keymap properties (%i): %s" % (len(p), p)
kh.cleanup()

def test_parse_shortcuts(self):
Expand Down

0 comments on commit 88fba99

Please sign in to comment.