33# SPDX-License-Identifier: Apache-2.0
44
55# Tests for spell functions that need extra dependencies
6- # Note: Tests requiring phunspell/torch/HuggingFace Hub have been moved to tests.noauto
76
87import unittest
98
2019
2120class SpellTestCaseX (unittest .TestCase ):
2221 def test_spell (self ):
23- # Tests for symspellpy only (phunspell moved to noauto)
2422 result = spell ("เน้ร" , engine = "symspellpy" )
2523 self .assertIsInstance (result , list )
2624 self .assertGreater (len (result ), 0 )
@@ -30,17 +28,14 @@ def test_spell(self):
3028 self .assertGreater (len (result ), 0 )
3129
3230 def test_word_correct (self ):
33- # Tests for symspellpy only (phunspell and wanchanberta moved to noauto)
3431 result = correct ("ทดสอง" , engine = "symspellpy" )
3532 self .assertIsInstance (result , str )
3633 self .assertNotEqual (result , "" )
3734
3835 def test_spell_sent (self ):
39- # Tests for symspellpy only (phunspell moved to noauto)
4036 self .assertIsNotNone (spell_sent (SENT_TOKS , engine = "symspellpy" ))
4137
4238 def test_correct_sent (self ):
43- # Tests for symspellpy only (phunspell and wanchanberta moved to noauto)
4439 self .assertIsNotNone (correct_sent (SENT_TOKS , engine = "symspellpy" ))
4540 self .assertIsNotNone (symspellpy .correct_sent (SENT_TOKS ))
4641
@@ -56,4 +51,3 @@ def test_spell_tltk(self):
5651 result = spell ("เดก" , engine = "tltk" )
5752 self .assertIsInstance (result , list )
5853 self .assertGreater (len (result ), 0 )
59-
0 commit comments