stop importing robofab in the test suite
This commit is contained in:
parent
0e3ca80eea
commit
ae7ad468c0
@ -13,8 +13,8 @@ except NameError:
|
||||
|
||||
def getDemoFontPath():
|
||||
"""Return the path to Data/DemoFont.ufo/."""
|
||||
import robofab
|
||||
root = os.path.dirname(os.path.dirname(os.path.dirname(robofab.__file__)))
|
||||
import ufoLib
|
||||
root = os.path.dirname(os.path.dirname(os.path.dirname(ufoLib.__file__)))
|
||||
return os.path.join(root, "Data", "DemoFont.ufo")
|
||||
|
||||
|
||||
|
@ -4143,8 +4143,8 @@ class UFO3WriteLayersTestCase(unittest.TestCase):
|
||||
class UFO3ReadDataTestCase(unittest.TestCase):
|
||||
|
||||
def getFontPath(self):
|
||||
import robofab
|
||||
path = os.path.dirname(robofab.__file__)
|
||||
import ufoLib
|
||||
path = os.path.dirname(ufoLib.__file__)
|
||||
path = os.path.dirname(path)
|
||||
path = os.path.dirname(path)
|
||||
path = os.path.join(path, "TestData", "UFO3-Read Data.ufo")
|
||||
|
@ -35,8 +35,8 @@ class ConversionFunctionsTestCase(unittest.TestCase):
|
||||
shutil.rmtree(path)
|
||||
|
||||
def getFontPath(self, fileName):
|
||||
import robofab
|
||||
path = os.path.dirname(robofab.__file__)
|
||||
import ufoLib
|
||||
path = os.path.dirname(ufoLib.__file__)
|
||||
path = os.path.dirname(path)
|
||||
path = os.path.dirname(path)
|
||||
path = os.path.join(path, "TestData", fileName)
|
||||
@ -364,5 +364,5 @@ class KerningDownConversionTestCase(unittest.TestCase):
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
from robofab.test.testSupport import runTests
|
||||
from ufoLib.test.testSupport import runTests
|
||||
runTests()
|
||||
|
@ -137,7 +137,7 @@ class FileNameTests(unittest.TestCase):
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
from robofab.test.testSupport import runTests
|
||||
from ufoLib.test.testSupport import runTests
|
||||
import sys
|
||||
if len(sys.argv) > 1 and os.path.isdir(sys.argv[-1]):
|
||||
GLYPHSETDIR = sys.argv.pop()
|
||||
|
Loading…
x
Reference in New Issue
Block a user