From 466a26f7ef64e9a8299e2b1c7704506c42681e5f Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Wed, 2 Oct 2019 17:19:49 +0200 Subject: layouts: Remove empty string production --- lulua/test_layout.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lulua/test_layout.py') diff --git a/lulua/test_layout.py b/lulua/test_layout.py index 53013ff..909b717 100644 --- a/lulua/test_layout.py +++ b/lulua/test_layout.py @@ -28,9 +28,10 @@ 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) """ + """ Make sure layout text strings are atomic (i.e. not decomposeable) and not empty """ for btn, text in layout.buttons (): assert isinstance (text, str) + assert text != '', (btn, ) for char in text: d = unicodedata.decomposition (char) # allow compat decompositions like … -> ... -- cgit v1.2.3