BLKSerene/Wordless

View on GitHub
tests/tests_settings/test_settings_sentence_tokenization.py

Summary

Maintainability
A
0 mins
Test Coverage
# ----------------------------------------------------------------------
# Wordless: Tests - Settings - Sentence 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_sentence_tokenization

main = wl_test_init.Wl_Test_Main(switch_lang_utils = 'fast')

def test_wl_settings_sentence_tokenization():
    settings_sentence_tokenization = wl_settings_sentence_tokenization.Wl_Settings_Sentence_Tokenization(main)
    settings_sentence_tokenization.load_settings()
    settings_sentence_tokenization.load_settings(defaults = True)
    settings_sentence_tokenization.apply_settings()

    settings_sentence_tokenization.preview_changed()
    settings_sentence_tokenization.update_gui('test')
    settings_sentence_tokenization.update_gui_err()

if __name__ == '__main__':
    test_wl_settings_sentence_tokenization()