Skip to content

Commit

Permalink
add test for re-exported apply_instance_data function
Browse files Browse the repository at this point in the history
  • Loading branch information
anthrotype committed Jul 19, 2018
1 parent c9da18e commit def888e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/builder/instances_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def test_apply_instance_data(tmpdir, instance_names):
instance.filename for instance in test_designspace.instances
if instance.styleName in instance_names
]

# Generate dummy UFOs for collected instances so we don't actually need to
# interpolate.
for instance in test_instances:
Expand All @@ -78,6 +78,13 @@ def test_apply_instance_data(tmpdir, instance_names):
assert ufo.info.openTypeOS2WidthClass is not None


def test_reexport_apply_instance_data():
# this is for compatibility with fontmake
# https://github.com/googlei18n/fontmake/issues/451
from glyphsLib.interpolation import apply_instance_data as reexported
assert reexported is apply_instance_data


def test_reencode_glyphs(tmpdir):
data_dir = py.path.local(DATA)

Expand Down

0 comments on commit def888e

Please sign in to comment.