File: test_axisregistry_api.py

package info (click to toggle)
axisregistry 0.3.5-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 6,024 kB
  • sloc: python: 955; makefile: 4
file content (14 lines) | stat: -rw-r--r-- 494 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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