From: Marc Foley Date: Tue, 26 Nov 2024 14:52:44 +0000 (+0000) Subject: test tags have value within range 1-100 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F8596%2Fhead;p=thirdparty%2Fgoogle%2Ffonts.git test tags have value within range 1-100 --- diff --git a/.ci/test_font_tags.py b/.ci/test_font_tags.py index ab4fe8b128..fcf17010d8 100644 --- a/.ci/test_font_tags.py +++ b/.ci/test_font_tags.py @@ -43,7 +43,6 @@ def test_families_missing_tags(family_tags, family_metadata): def test_no_duplicate_families(family_tags): - import pdb; pdb.set_trace() seen = set() dups = [] for family, cat, _ in family_tags: @@ -51,4 +50,12 @@ def test_no_duplicate_families(family_tags): if key in seen: dups.append(",".join(key)) seen.add(key) - assert not dups, f"Duplicate tags found: {dups}" \ No newline at end of file + assert not dups, f"Duplicate tags found: {dups}" + + +def test_tag_vals_in_range(family_tags): + out_of_range = [] + for family, cat, val in family_tags: + if val <= 0 or val > 100: + out_of_range.append((family, cat, val)) + assert not out_of_range, f"Values out of range 1-100: {out_of_range}"