def test_get_goadb_path_not_found(): path = os.path.dirname(_get_test_ttf_path()) assert ttfcomp.get_goadb_path(path) is None
def test_get_goadb_path_found_3_folders_up(): # the UFO's glif file is intentionally used as a test file path = os.path.join(_get_test_ufo_path(), 'glyphs', 'a.glif') assert os.path.basename( ttfcomp.get_goadb_path(path)) == ttfcomp.GOADB_FILENAME
def test_get_goadb_path_found_same_folder(): path = _get_test_ttf_path() assert os.path.basename( ttfcomp.get_goadb_path(path)) == ttfcomp.GOADB_FILENAME