diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-03-02 20:01:10 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-03-02 20:01:10 +0000 |
commit | da875fcb62c801b8d19b3d4d984ad963574fb356 (patch) | |
tree | 3d85503747c56c2a387b291524442946f4bebb73 /tests/ufo/test_44_psfmakewoffmetatdata.py | |
parent | Initial commit. (diff) | |
download | pysilfont-1f9ed76662986bf6e3802e9fb3080d61e5797532.tar.xz pysilfont-1f9ed76662986bf6e3802e9fb3080d61e5797532.zip |
Adding upstream version 1.6.0.upstream/1.6.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | tests/ufo/test_44_psfmakewoffmetatdata.py | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/tests/ufo/test_44_psfmakewoffmetatdata.py b/tests/ufo/test_44_psfmakewoffmetatdata.py new file mode 100644 index 0000000..ff8325d --- /dev/null +++ b/tests/ufo/test_44_psfmakewoffmetatdata.py @@ -0,0 +1,37 @@ +#!/usr/bin/env python +'Test for psfmakewoffmetadata' +__url__ = 'http://github.com/silnrsi/pysilfont' +__copyright__ = 'Copyright (c) 2018 SIL International (http://www.sil.org)' +__license__ = 'Released under the MIT License (http://opensource.org/licenses/MIT)' +__author__ = 'David Raymond' + +import silfont.util + +# Next 5 lines of code are test-specific +import silfont.scripts.psfmakewoffmetadata as testcommand +testname = "psfmakewoffmetadata" +cl = "psfmakewoffmetadata tests/input/font-psf-test/source/PsfTest-Regular.ufo -n Test -i SIL -f tests/input/psfmakewoffmetadata.txt" \ + + " -o local/testresults/ufo/psfmakewoffmetadata.xml -l local/testresults/ufo/psfmakewoffmetadata.log" +outfont = None +diffexts = [".xml", ".log"] +exp_errors = 0 # These may need updating if the test ufo is updated +exp_warnings = 6 # The test ufo should have some errors/warnings to test the code! + +# Code after this can be the same for most tests; if needed to be different for a test remove this comment! + +def test_run(): + result = silfont.util.test_run("UFO", cl, testcommand, outfont, exp_errors, exp_warnings) + assert result + +def test_diffs(): # Generic function for all UFO tests + result = silfont.util.test_diffs("ufo", testname, diffexts) + assert result + +if __name__ == "__main__": + test_run() + test_diffs() + + + + + |