File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 88class TestApi (utils .TestCase ):
99 def setUp (self ):
1010 detectlanguage .configuration .api_key = os .environ ['DETECTLANGUAGE_API_KEY' ]
11-
11+
1212 def test_simple_detect (self ):
1313 result = detectlanguage .simple_detect ("Hello world" )
1414 eq_ ('en' , result )
@@ -26,10 +26,6 @@ def test_detect_array(self):
2626 eq_ ('en' , result [0 ][0 ]['language' ])
2727 eq_ ('lt' , result [1 ][0 ]['language' ])
2828
29- def test_detect_array_with_brackets (self ):
30- result = detectlanguage .detect (["[2]Hello world" , "Ėjo ežiukas" ])
31- eq_ (2 , len (result ))
32-
3329 def test_user_status (self ):
3430 result = detectlanguage .user_status ()
3531 eq_ ('ACTIVE' , result ['status' ])
@@ -49,3 +45,4 @@ class TestApiErrors(utils.TestCase):
4945 def test_invalid_key (self ):
5046 detectlanguage .configuration .api_key = 'invalid'
5147 detectlanguage .detect ("Hello world" )
48+
You can’t perform that action at this time.
0 commit comments