Skip to content

Commit

Permalink
Make test/065 emit a WARN instead of FAILing
Browse files Browse the repository at this point in the history
  • Loading branch information
felipesanches committed Oct 25, 2017
1 parent 757d0b9 commit 1052757
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions Lib/fontbakery/specifications/googlefonts.py
Original file line number Diff line number Diff line change
Expand Up @@ -2400,10 +2400,10 @@ def ligatures_str(ligs):
# look_for_nonligated_kern_info(lookup.SubTable[0])

if remaining != {}:
yield FAIL, Message("lacks-kern-info",
("GPOS table lacks kerning info for the following"
" non-ligated sequences: "
"{}").format(ligatures_str(remaining)))
yield WARN, Message("lacks-kern-info",
("GPOS table lacks kerning info for the following"
" non-ligated sequences: "
"{}").format(ligatures_str(remaining)))
else:
yield PASS, ("GPOS table provides kerning info for "
"all non-ligated sequences.")
Expand Down
6 changes: 3 additions & 3 deletions Lib/fontbakery/specifications/googlefonts_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1277,10 +1277,10 @@ def test_id_065():
lig = ligatures(ttFont)
has_kinfo = has_kerning_info(ttFont)

# So it must FAIL the test:
print ("Test FAIL with a bad font...")
# So it must emit a WARN in this test:
print ("Test WARN with a bad font...")
status, message = list(test(ttFont, lig, has_kinfo))[-1]
assert status == FAIL and message.code == "lacks-kern-info"
assert status == WARN and message.code == "lacks-kern-info"


def test_id_066():
Expand Down

0 comments on commit 1052757

Please sign in to comment.