globalforest/kivymd/tests/test_icon_definitions.py
2020-10-14 23:38:48 +03:00

9 lines
314 B
Python

def test_icons_have_size():
from kivymd.icon_definitions import md_icons
from kivy.core.text import Label
lbl = Label(font_name="Icons")
for icon_name, icon_value in md_icons.items():
assert len(icon_value) == 1
lbl.refresh()
assert lbl.get_extents(icon_value) is not None