From c0e7bb859fe71835f11709dc109d1a9d5253c47d Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 7 Apr 2015 18:26:44 -0700 Subject: [PATCH] Add test to make sure supported table entries are added to git Catches the vase where support for a table is added, but the .py file is not added to git (like happened for feat and fvar tables). --- Lib/fontTools/ttLib/tables/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Lib/fontTools/ttLib/tables/__init__.py b/Lib/fontTools/ttLib/tables/__init__.py index 6b13f3e6e..253f6a286 100644 --- a/Lib/fontTools/ttLib/tables/__init__.py +++ b/Lib/fontTools/ttLib/tables/__init__.py @@ -2,6 +2,8 @@ def _moduleFinderHint(): """Dummy function to let modulefinder know what tables may be dynamically imported. Generated by MetaTools/buildTableList.py. + + >>> _moduleFinderHint() """ from . import B_A_S_E_ from . import C_B_D_T_ @@ -58,3 +60,7 @@ def _moduleFinderHint(): from . import _s_b_i_x from . import _v_h_e_a from . import _v_m_t_x + +if __name__ == "__main__": + import doctest, sys + sys.exit(doctest.testmod().failed)