globalforest/kivymd/tests/test_font_definitions.py

16 lines
350 B
Python
Raw Normal View History

2020-10-14 00:19:43 -04:00
def test_fonts_registration():
# This should register fonts:
import kivymd # NOQA
from kivy.core.text import LabelBase
fonts = [
"Roboto",
"RobotoThin",
"RobotoLight",
"RobotoMedium",
"RobotoBlack",
"Icons",
]
for font in fonts:
assert font in LabelBase._fonts.keys()