test_i18n: Remove zh-hans tests for now.

This commit is contained in:
Tim Abbott 2017-10-05 23:33:12 -07:00
parent 43bba27e5d
commit 313083484a
1 changed files with 3 additions and 6 deletions

View File

@ -40,11 +40,10 @@ class TranslationTestCase(ZulipTestCase):
languages = [('en', u'Register'),
('de', u'Registrieren'),
('sr', u'Региструј се'),
('zh-hans', u'注册'),
]
for lang, word in languages:
response = self.fetch('get', '/integrations/', 200,
response = self.fetch('get', '/login/', 200,
HTTP_ACCEPT_LANGUAGE=lang)
self.assert_in_response(word, response)
@ -53,7 +52,6 @@ class TranslationTestCase(ZulipTestCase):
languages = [('en', u'Register'),
('de', u'Registrieren'),
('sr', u'Региструј се'),
('zh-hans', u'注册'),
]
for lang, word in languages:
@ -61,7 +59,7 @@ class TranslationTestCase(ZulipTestCase):
# into an ascii otherwise SimpleCookie will raise an exception
self.client.cookies = SimpleCookie({str(settings.LANGUAGE_COOKIE_NAME): lang})
response = self.fetch('get', '/integrations/', 200)
response = self.fetch('get', '/login/', 200)
self.assert_in_response(word, response)
def test_i18n_urls(self):
@ -69,11 +67,10 @@ class TranslationTestCase(ZulipTestCase):
languages = [('en', u'Register'),
('de', u'Registrieren'),
('sr', u'Региструј се'),
('zh-hans', u'注册'),
]
for lang, word in languages:
response = self.fetch('get', '/{}/integrations/'.format(lang), 200)
response = self.fetch('get', '/{}/login/'.format(lang), 200)
self.assert_in_response(word, response)