From 596c571c1c3e07d4d8f5782ed5849fb8dc0c0ac9 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 16 Aug 2022 12:36:47 -0600 Subject: [PATCH] Add ttVisitor test --- Tests/ttLib/ttVisitor_test.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Tests/ttLib/ttVisitor_test.py diff --git a/Tests/ttLib/ttVisitor_test.py b/Tests/ttLib/ttVisitor_test.py new file mode 100644 index 000000000..87681904b --- /dev/null +++ b/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)