mirror of https://github.com/zulip/zulip.git
test_i18n: Remove zh-hans tests for now.
This commit is contained in:
parent
43bba27e5d
commit
313083484a
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue