From 606d80386521d0d257618ffa34f2c4562fe3f1b4 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Sun, 29 Sep 2019 08:40:55 +0200 Subject: layouts: Use decomposed unicode sequence --- lulua/test_layout.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lulua/test_layout.py') diff --git a/lulua/test_layout.py b/lulua/test_layout.py index 5c8bb7f..53013ff 100644 --- a/lulua/test_layout.py +++ b/lulua/test_layout.py @@ -29,13 +29,13 @@ from .keyboard import defaultKeyboards @pytest.mark.parametrize("layout", defaultLayouts, ids=[l.name for l in defaultLayouts]) def test_atomic (layout): """ Make sure layout text strings are atomic (i.e. not decomposeable) """ - for _, text in layout.buttons (): + for btn, text in layout.buttons (): assert isinstance (text, str) for char in text: d = unicodedata.decomposition (char) # allow compat decompositions like … -> ... if not d.startswith (' ') and not d.startswith (' ') and not d.startswith (' ') and not d.startswith (' '): - assert d == '', char + assert d == '', (char, btn) @pytest.mark.parametrize("layout", defaultLayouts, ids=[l.name for l in defaultLayouts]) def test_genericlayout_len (layout): -- cgit v1.2.3