mirror of https://github.com/django/django.git
Fixed test failures introduced by #12288
This commit is contained in:
parent
2ac89012d8
commit
b575d690bb
|
@ -198,8 +198,6 @@ class JavascriptI18nTests(LiveServerTestCase):
|
||||||
|
|
||||||
@override_settings(LANGUAGE_CODE='de')
|
@override_settings(LANGUAGE_CODE='de')
|
||||||
def test_javascript_gettext(self):
|
def test_javascript_gettext(self):
|
||||||
extended_apps = list(settings.INSTALLED_APPS) + ['view_tests']
|
|
||||||
with self.settings(INSTALLED_APPS=extended_apps):
|
|
||||||
self.selenium.get('%s%s' % (self.live_server_url, '/jsi18n_template/'))
|
self.selenium.get('%s%s' % (self.live_server_url, '/jsi18n_template/'))
|
||||||
|
|
||||||
elem = self.selenium.find_element_by_id("gettext")
|
elem = self.selenium.find_element_by_id("gettext")
|
||||||
|
@ -216,8 +214,6 @@ class JavascriptI18nTests(LiveServerTestCase):
|
||||||
self.assertEqual(elem.text, "455 Resultate")
|
self.assertEqual(elem.text, "455 Resultate")
|
||||||
|
|
||||||
def test_escaping(self):
|
def test_escaping(self):
|
||||||
extended_apps = list(settings.INSTALLED_APPS) + ['view_tests']
|
|
||||||
with self.settings(INSTALLED_APPS=extended_apps):
|
|
||||||
# Force a language via GET otherwise the gettext functions are a noop!
|
# Force a language via GET otherwise the gettext functions are a noop!
|
||||||
response = self.client.get('/jsi18n_admin/?language=de')
|
response = self.client.get('/jsi18n_admin/?language=de')
|
||||||
self.assertContains(response, '\\x04')
|
self.assertContains(response, '\\x04')
|
||||||
|
|
Loading…
Reference in New Issue