Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix fontParts tests #33

Merged
merged 2 commits into from
Mar 18, 2021
Merged

Fix fontParts tests #33

merged 2 commits into from
Mar 18, 2021

Conversation

benkiel
Copy link
Contributor

@benkiel benkiel commented Mar 12, 2021

closes #32

@@ -157,7 +161,7 @@ def _makeTestDocument(docPath, useVarlib=True):
a.maximum = 1000
a.default = 0
a.tag = "pop*"
a.map = [(500,250)]
a.map = [(0,0),(500,250),(1000,1000)]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needed to map the standard ones too, otherwise the whole designspace shifts

@@ -90,6 +90,10 @@ def _makeTestFonts(rootPath):
path3 = os.path.join(rootPath, "instances", "geometryInstance%3.3f.ufo")
path4 = os.path.join(rootPath, "anisotropic_instances", "geometryInstanceAnisotropic1.ufo")
path5 = os.path.join(rootPath, "anisotropic_instances", "geometryInstanceAnisotropic2.ufo")
for path in [path1, path2, path3, path4, path5]:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check that directories are there, if not make. otherwise tests failed.

@benkiel benkiel changed the title use getLayer Fix fontParts tests Mar 15, 2021
@LettError LettError merged commit 0860dde into LettError:master Mar 18, 2021
@benkiel benkiel deleted the fix_fontParts_test branch March 19, 2021 03:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tests_fp.py is broken for fontParts >= 0.9.0
2 participants