Skip to content

Commit

Permalink
Add ttVisitor test
Browse files Browse the repository at this point in the history
  • Loading branch information
behdad committed Aug 16, 2022
1 parent 8fdf4d1 commit 596c571
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Tests/ttLib/ttVisitor_test.py
@@ -0,0 +1,18 @@
from fontTools.ttLib import TTFont
from fontTools.ttLib.ttVisitor import TTVisitor
import os
import pytest


class TTVisitorTest(object):

@staticmethod
def getpath(testfile):
path = os.path.dirname(__file__)
return os.path.join(path, "data", testfile)

def test_ttvisitor(self):

font = TTFont(self.getpath("TestVGID-Regular.otf"))
visitor = TTVisitor()
visitor.visit(font, 1, 2, arg=3)

0 comments on commit 596c571

Please sign in to comment.