1
0
mirror of synced 2025-12-19 17:48:10 -05:00
Files
fonts/tests/test_axisregistry_api.py
Marc Foley 81aa9727aa run black
2022-05-06 15:43:51 +01:00

15 lines
494 B
Python

from axisregistry import AxisRegistry
def test_AxisRegistry():
registry = AxisRegistry()
assert "GRAD" in registry.keys()
for axis_tag in registry.keys():
assert len(axis_tag) == 4
for f in range(len(registry[axis_tag].fallback)):
fallback = registry[axis_tag].fallback[f]
# fallback names should not be space-separated.
# (see: https://github.com/googlefonts/axisregistry/issues/7)
assert " " not in fallback.name