tests/tests_settings/test_settings_syl_tokenization.py
# ----------------------------------------------------------------------
# Wordless: Tests - Settings - Syllable Tokenization
# Copyright (C) 2018-2024 Ye Lei (叶磊)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# ----------------------------------------------------------------------
from tests import wl_test_init
from wordless.wl_settings import wl_settings_syl_tokenization
main = wl_test_init.Wl_Test_Main(switch_lang_utils = 'fast')
def test_wl_settings_syl_tokenization():
settings_syl_tokenization = wl_settings_syl_tokenization.Wl_Settings_Syl_Tokenization(main)
settings_syl_tokenization.load_settings()
settings_syl_tokenization.load_settings(defaults = True)
settings_syl_tokenization.apply_settings()
settings_syl_tokenization.preview_changed()
settings_syl_tokenization.update_gui('test')
settings_syl_tokenization.update_gui_err()
if __name__ == '__main__':
test_wl_settings_syl_tokenization()