1import os 2from fontTools import ttLib 3import pytest 4 5 6TESTDATA = os.path.join(os.path.dirname(__file__), "data") 7 8 9@pytest.fixture 10def varfont(): 11 f = ttLib.TTFont() 12 f.importXML(os.path.join(TESTDATA, "PartialInstancerTest-VF.ttx")) 13 return f 14