#17980: Tests fail when i18n set to True. ------------------------------+------------------------------------ Reporter: wassup | Owner: nobody Type: Bug | Status: new Component: contrib.auth | Version: 1.4 Severity: Normal | Resolution: Keywords: tests | Triage Stage: Accepted Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 ------------------------------+------------------------------------
Comment (by wassup): It spits out 'en'. Additionally, I thought it shall be fixed in one place, but apparently we're progressing on the bug by bug way. Thus, there are a couple of more to go that also fail on an already translated string: {{{ ====================================================================== FAIL: test_password_change_fails_with_invalid_old_password (django.contrib.auth.tests.views.ChangePasswordTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python2.7/site- packages/django/contrib/auth/tests/views.py", line 209, in test_password_change_fails_with_invalid_old_password self.assertContainsEscaped(response, PasswordChangeForm.error_messages['password_incorrect']) File "/usr/lib/python2.7/site- packages/django/contrib/auth/tests/views.py", line 54, in assertContainsEscaped return self.assertContains(response, escape(force_unicode(text)), **kwargs) File "/usr/lib/python2.7/site-packages/django/test/testcases.py", line 637, in assertContains msg_prefix + "Couldn't find '%s' in response" % text) AssertionError: Couldn't find 'Podane stare hasło jest niepoprawne. Proszę podać je jeszcze raz.' in response ====================================================================== FAIL: test_password_change_fails_with_mismatched_passwords (django.contrib.auth.tests.views.ChangePasswordTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python2.7/site- packages/django/contrib/auth/tests/views.py", line 219, in test_password_change_fails_with_mismatched_passwords self.assertContainsEscaped(response, SetPasswordForm.error_messages['password_mismatch']) File "/usr/lib/python2.7/site- packages/django/contrib/auth/tests/views.py", line 54, in assertContainsEscaped return self.assertContains(response, escape(force_unicode(text)), **kwargs) File "/usr/lib/python2.7/site-packages/django/test/testcases.py", line 637, in assertContains msg_prefix + "Couldn't find '%s' in response" % text) AssertionError: Couldn't find 'Hasła się nie zgadzają.' in response ====================================================================== FAIL: test_password_change_succeeds (django.contrib.auth.tests.views.ChangePasswordTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python2.7/site- packages/django/contrib/auth/tests/views.py", line 230, in test_password_change_succeeds self.fail_login() File "/usr/lib/python2.7/site- packages/django/contrib/auth/tests/views.py", line 196, in fail_login self.assertContainsEscaped(response, AuthenticationForm.error_messages['invalid_login']) File "/usr/lib/python2.7/site- packages/django/contrib/auth/tests/views.py", line 54, in assertContainsEscaped return self.assertContains(response, escape(force_unicode(text)), **kwargs) File "/usr/lib/python2.7/site-packages/django/test/testcases.py", line 637, in assertContains msg_prefix + "Couldn't find '%s' in response" % text) AssertionError: Couldn't find 'Proszę wpisać poprawną nazwę użytkownika i hasło. Uwaga: wielkość liter ma znaczenie.' in response }}} -- Ticket URL: <https://code.djangoproject.com/ticket/17980#comment:5> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.