ttFont_test: another test for missing glyph name that doesn't match 'glyph\d+' pattern

This commit is contained in:
Cosimo Lupo 2023-03-10 11:44:52 +00:00
parent b137fd9616
commit d64ee127be
No known key found for this signature in database
GPG Key ID: DF65A8A5A119C9A8

View File

@ -272,3 +272,5 @@ def test_getGlyphID():
assert font.getGlyphID("glyph12345") == 12345 # virtual glyph assert font.getGlyphID("glyph12345") == 12345 # virtual glyph
with pytest.raises(KeyError): with pytest.raises(KeyError):
font.getGlyphID("non_existent") font.getGlyphID("non_existent")
with pytest.raises(KeyError):
font.getGlyphID("glyph_prefix_but_invalid_id")