70 Commits

Author SHA1 Message Date
Cosimo Lupo
1780a11b99
test_glifLib: add basic roundtrip test for read/write glif/string functions 2018-07-10 16:02:47 +01:00
Cosimo Lupo
c51ca22a6b
test_GLIF{1,2}: use itertools.islice to skip first line with xml declaration 2018-07-10 12:23:22 +01:00
Cosimo Lupo
7bbdf6eef2
test: skip first line in pyToGLIF helper function 2018-07-09 20:16:18 +01:00
Tal Leming
c008e20854 Use lxml for reading. 2018-06-14 13:28:20 -04:00
Ben Kiel
c54c54b2ce Remove slice from splitlines that isn't needed for lxml 2018-06-13 16:22:40 -05:00
Ben Kiel
83303d56a7 Add in more valiator switches 2018-06-11 23:13:00 -05:00
Ben Kiel
a7aa115fd8 Update glyphLib.
Update tests.
Fix errors.
Add documenation.
2018-06-11 15:03:54 -05:00
Frederik Berlaen
4182100744 updating tests 2018-01-26 23:27:31 +01:00
Erik van Blokland
f726d88bcb Remove TTVendorCode. Not sure if "NONE" is a valid one, but here it is. 2017-10-25 11:36:23 +02:00
Erik van Blokland
5408815f09 This removes 4 glyphs borrowed from Adobe Sans. These glyphs are not used in any tests.
All licenses, copyright strings, notices, trademarks, removed and pointing to the license of the package.
2017-10-25 11:34:06 +02:00
Cosimo Lupo
3b9ced71e0 move all test data inside the inlined ufoLib/test modules, and install them
Since the test suite is inlined, it makes sense to also have the test data installed alongside the test modules.
So all the content of the two top-level folders Data and TestData is now placed inside Lib/ufoLib/test/testadata.
The MANIFEST.in has been adjusted accordingly.
The `install_package_data` in setup.py ensures the package data specified in the manifest is installed with the package.

This way anyone who installs ufoLib (even the wheel from PyPI) can run the test suite with `pytest --pyargs ufoLib`.
2016-10-17 19:41:13 +01:00
Denis Moyogo Jacquerye
4f83f4bbe1 tests: copy doctest as unittest in test_filenames 2016-07-11 13:49:59 +01:00
Denis Moyogo Jacquerye
04d96d7fe0 test: split tests in test_GLIF1 and test_GLIF2 2016-05-31 09:46:57 -07:00
Denis Moyogo Jacquerye
49c9640f73 test: split GLIF1 and GLIF2 tests 2016-05-31 11:25:12 +01:00
Denis Moyogo Jacquerye
16e2c0f308 use unicode_literals 2016-05-31 11:23:05 +01:00
Cosimo Lupo
6dbca7fa38 [testSupport] use repr() to stringify floats for py23 compat
Part of fixing #19
2016-03-17 16:04:11 +00:00
Adrien Tétar
fab99c30e5 plistlib: reimplement as shim 2016-03-01 12:43:04 +01:00
Adrien Tétar
67414f21ff pointPen: add adapter pens
and annihilate remaining robofab dependency
2015-12-13 20:48:01 +01:00
Adrien Tétar
0b60503f4f test: fix a test on Windows 2015-11-08 11:49:06 +01:00
Adrien Tétar
ae7ad468c0 stop importing robofab in the test suite 2015-11-08 11:33:29 +01:00
Denis Jacquerye
5b43ab5b42 ufoLib.test.test_glifLib: undo some 2to3 2015-11-06 15:11:04 +00:00
Denis Jacquerye
3be6afbf72 ufoLib.test.test_glifLib: remove test for robofab’s glyphNameToShortFileName 2015-11-06 15:06:52 +00:00
Denis Jacquerye
929ed4454c ufoLib: drop READ_MODE and WRITE_MODE 2015-11-06 15:06:52 +00:00
Denis Jacquerye
31d358af40 test_UFOConversion, test_UFO{1,2,3}: use plistlib load and dump 2015-11-06 15:06:51 +00:00
Denis Jacquerye
3df210b68f ufoLib.test.test_glifLib: testRoundTrip() anchors don't come in the same order anymore 2015-11-06 15:06:51 +00:00
Denis Jacquerye
07c10687c4 test_gliflib: new file name scheme 2015-11-06 15:06:51 +00:00
Denis Jacquerye
d70348e8a7 test_gliflib: use io.open 2015-11-06 15:06:50 +00:00
Denis Jacquerye
ab842f1e01 ufoLib.test.test_UFOConversion: absolute import 2015-11-06 15:06:50 +00:00
Denis Jacquerye
9c0c7e5177 ufoLib.test.test_UFO1, test_UFO2, test_UFO3: absolute import, unicode_literals, explicit bytes, use io.open 2015-11-06 15:06:50 +00:00
Denis Jacquerye
b6cb3738c8 ufoLib.test.testSupport, test_GLIF1 and test_GLIF2: unicode_literals, use basestring 2015-11-06 15:06:50 +00:00
Adrien Tétar
337ef3202b ufoLib meta: automated 2to3 conversion 2015-11-05 09:30:43 +00:00
Tal Leming
8dc8742959 Add write time kerning group down conversion to UFOWriter.
This allows the UFO 3 up converted kerning group names to be reset to
their original names at the time of writing in UFO <= 2.
2014-02-18 11:49:26 -05:00
Tal Leming
0f6b6d741a Fix some failing tests.
I’m not sure why these were still broken.
2014-02-18 10:29:30 -05:00
Tal Leming
e05354fe33 Duplicate records are now allowed.
git-svn-id: http://svn.robofab.com/branches/ufo3k@551 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2012-02-14 03:38:32 +00:00
Tal Leming
1dcbf6c73e The last table is no longer required to be 0xFFFF.
git-svn-id: http://svn.robofab.com/branches/ufo3k@550 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2012-02-14 03:34:28 +00:00
Tal Leming
4cf0d74b48 Clarified a requirement in the spec: smooth is allowed in any point type except offcurve.
git-svn-id: http://svn.robofab.com/branches/ufo3k@546 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2012-01-17 15:13:52 +00:00
Tal Leming
d16c3ee928 Set a value properly.
git-svn-id: http://svn.robofab.com/branches/ufo3k@512 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-12-06 20:27:14 +00:00
Tal Leming
6f7a70d13f Found an error in a test and a couple of typos in the code.
git-svn-id: http://svn.robofab.com/branches/ufo3k@508 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-12-06 18:47:56 +00:00
Tal Leming
b8e639ac31 Added a method for copying a file or directory from a UFOReader. This should (I'll find out tomorrow) be helpful for dealing with /data and /images in save as operations in higher level objects.
git-svn-id: http://svn.robofab.com/branches/ufo3k@426 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-19 02:18:56 +00:00
Tal Leming
cc6c5d2d3d The gasp records can now be an empty list.
git-svn-id: http://svn.robofab.com/branches/ufo3k@415 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-18 13:15:04 +00:00
Tal Leming
69a04a7d7a Remove the filtering of loose offcurves in open contours when writing.
git-svn-id: http://svn.robofab.com/branches/ufo3k@414 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-18 13:03:59 +00:00
Tal Leming
64ebada787 Don't let any loose offcurves into slip into an open path.
git-svn-id: http://svn.robofab.com/branches/ufo3k@410 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-17 20:03:14 +00:00
Tal Leming
cde4ada2f7 Old anchor format fixes.
git-svn-id: http://svn.robofab.com/branches/ufo3k@408 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-17 16:39:25 +00:00
Tal Leming
08732962b4 Special handling of anchors in GLIF 1. This was never part of the spec, but all glifLib uses that I know of did things this way.
git-svn-id: http://svn.robofab.com/branches/ufo3k@406 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-17 13:29:07 +00:00
Tal Leming
d16091c27e Support new anchor element.
git-svn-id: http://svn.robofab.com/branches/ufo3k@403 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-15 17:43:57 +00:00
Tal Leming
88cb646590 Incorrect failure.
git-svn-id: http://svn.robofab.com/branches/ufo3k@399 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-11 19:31:52 +00:00
Tal Leming
91b7ba0e72 Make it possible to rename the default layer.
git-svn-id: http://svn.robofab.com/branches/ufo3k@386 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-06 17:50:53 +00:00
Tal Leming
2d17dfc09e Don't support in-place down conversion. It's too lossy. The way to do it is to write a UFO with the lower format to a temporary location, use shutil to remove the old UFO, then use shutil to move the new UFO. This will remove any unknown data (ie .svn directories) but this would likely happen in an in-place down conversion anyway.
git-svn-id: http://svn.robofab.com/branches/ufo3k@384 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-06 13:30:11 +00:00
Tal Leming
aaab0ed06d Test cases for an edge case.
git-svn-id: http://svn.robofab.com/branches/ufo3k@383 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-05 20:48:36 +00:00
Tal Leming
d3325920cc Reworked the getGlyphSet method.
git-svn-id: http://svn.robofab.com/branches/ufo3k@382 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2011-10-05 19:53:22 +00:00