Skip to content

Commit 325a336

Browse files
committed
Revert "Add array test with brackets"
This reverts commit 321f039.
1 parent 321f039 commit 325a336

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

tests/test_api.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
class 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+

0 commit comments

Comments
 (0)