From 88fba991df7fb50deb6eadf6dc335aa99048d166 Mon Sep 17 00:00:00 2001 From: totaam Date: Tue, 30 Aug 2022 20:59:47 +0700 Subject: [PATCH] we have to query the keymap to get properties also, there are fewer properties now that we removed legacy mode --- tests/unittests/unit/client/keyboard_helper_test.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/unittests/unit/client/keyboard_helper_test.py b/tests/unittests/unit/client/keyboard_helper_test.py index 87e40477f5..06ee535758 100755 --- a/tests/unittests/unit/client/keyboard_helper_test.py +++ b/tests/unittests/unit/client/keyboard_helper_test.py @@ -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):