test_axisregistry_api.py 494 B

1234567891011121314
  1. from axisregistry import AxisRegistry
  2. def test_AxisRegistry():
  3. registry = AxisRegistry()
  4. assert 'GRAD' in registry.keys()
  5. for axis_tag in registry.keys():
  6. assert len(axis_tag) == 4
  7. for f in range(len(registry[axis_tag].fallback)):
  8. fallback = registry[axis_tag].fallback[f]
  9. # fallback names should not be space-separated.
  10. # (see: https://github.com/googlefonts/axisregistry/issues/7)
  11. assert ' ' not in fallback.name