<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
test_pythainlp
----------------------------------

Tests for `pythainlp` module.
"""


import sys
import unittest
from contextlib import contextmanager
from pythainlp.segment.pyicu import icu

from pythainlp import pythainlp



class TestPythainlp(unittest.TestCase):

    def setUp(self):
        pass

    def tearDown(self):
        pass

    def test_000_something(self):
        pass

    def test_command_line_interface(self):
        runner = icu()
        result = runner.invoke(icu.main)
        assert result.exit_code == 0
        assert 'pythainlp.segment.pyicu.main' in result.output
        #help_result = runner.invoke(cli.main, ['--help'])
        #assert help_result.exit_code == 0
        #assert '--help  Show this message and exit.' in help_result.output


if __name__ == '__main__':<commit_msg>fix test<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
test_pythainlp
----------------------------------

Tests for `pythainlp` module.
"""


import sys
import unittest
from contextlib import contextmanager
from pythainlp.segment.pyicu import icu

from pythainlp import pythainlp



class TestPythainlp(unittest.TestCase):

    def setUp(self):
        pass

    def tearDown(self):
        pass

    def test_000_something(self):
        pass

    def test_command_line_interface(self):
        runner = icu("ทดสอบระบบ")
        result = runner.invoke(icu.main)
        assert result.exit_code == 0
        assert 'pythainlp.segment.pyicu.main' in result.output
        #help_result = runner.invoke(cli.main, ['--help'])
        #assert help_result.exit_code == 0
        #assert '--help  Show this message and exit.' in help_result.output


if __name__ == '__main__':
{'fraction_non_alphanumeric': 0.1414027149321267, 'fraction_numerical': 0.006787330316742082, 'mean_word_length': 2.509920634920635, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1968504', 'n_tokens_mistral': 580, 'n_tokens_neox': 553, 'n_words': 134}