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

15 lines
350 B
Python

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()