adding importerskip
for glyphsapp tests
This commit is contained in:
parent
c76b8f9990
commit
ab7628b3f5
@ -5,6 +5,7 @@ import shutil
|
|||||||
import sys
|
import sys
|
||||||
import tempfile
|
import tempfile
|
||||||
import unittest
|
import unittest
|
||||||
|
import pytest
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import scipy
|
import scipy
|
||||||
@ -103,6 +104,7 @@ class InterpolatableTest(unittest.TestCase):
|
|||||||
self.assertIsNone(interpolatable_main([designspace_path]))
|
self.assertIsNone(interpolatable_main([designspace_path]))
|
||||||
|
|
||||||
def test_glyphsapp(self):
|
def test_glyphsapp(self):
|
||||||
|
pytest.importorskip("glyphsLib")
|
||||||
glyphsapp_path = self.get_test_input("InterpolateLayout.glyphs")
|
glyphsapp_path = self.get_test_input("InterpolateLayout.glyphs")
|
||||||
self.assertIsNone(interpolatable_main([glyphsapp_path]))
|
self.assertIsNone(interpolatable_main([glyphsapp_path]))
|
||||||
|
|
||||||
@ -221,7 +223,8 @@ class InterpolatableTest(unittest.TestCase):
|
|||||||
# normal order, with --ignore-missing
|
# normal order, with --ignore-missing
|
||||||
self.assertIsNone(interpolatable_main(["--ignore-missing", designspace_path]))
|
self.assertIsNone(interpolatable_main(["--ignore-missing", designspace_path]))
|
||||||
|
|
||||||
def test_sparse_designspace(self):
|
def test_sparse_glyphsapp(self):
|
||||||
|
pytest.importorskip("glyphsLib")
|
||||||
glyphsapp_path = self.get_test_input("SparseMasters.glyphs")
|
glyphsapp_path = self.get_test_input("SparseMasters.glyphs")
|
||||||
|
|
||||||
problems = interpolatable_main(["--quiet", glyphsapp_path])
|
problems = interpolatable_main(["--quiet", glyphsapp_path])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user