From 865603780b0da7bc787199b839c41883cf406e6e Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Sun, 22 Dec 2013 18:50:49 +0100 Subject: [PATCH] Moved a test that didn't require Selenium. --- tests/view_tests/tests/test_i18n.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tests/view_tests/tests/test_i18n.py b/tests/view_tests/tests/test_i18n.py index 1e4eff66df..97b73b72ac 100644 --- a/tests/view_tests/tests/test_i18n.py +++ b/tests/view_tests/tests/test_i18n.py @@ -130,6 +130,10 @@ class JsI18NTests(TestCase): response = self.client.get('/views/jsi18n/') self.assertContains(response, 'Choisir une heure') + def test_escaping(self): + # Force a language via GET otherwise the gettext functions are a noop! + response = self.client.get('/views/jsi18n_admin/?language=de') + self.assertContains(response, '\\x04') class JsI18NTestsMultiPackage(TestCase): """ @@ -207,8 +211,3 @@ class JavascriptI18nTests(LiveServerTestCase): self.assertEqual(elem.text, "1 Resultat") elem = self.selenium.find_element_by_id("npgettext_plur") self.assertEqual(elem.text, "455 Resultate") - - def test_escaping(self): - # Force a language via GET otherwise the gettext functions are a noop! - response = self.client.get('/jsi18n_admin/?language=de') - self.assertContains(response, '\\x04')