diff --git a/django/contrib/auth/tests/templates/registration/password_reset_complete.html b/django/contrib/auth/tests/templates/registration/password_reset_complete.html new file mode 100644 index 0000000000..3dd79d86a4 --- /dev/null +++ b/django/contrib/auth/tests/templates/registration/password_reset_complete.html @@ -0,0 +1 @@ +Password reset successfully \ No newline at end of file diff --git a/django/contrib/auth/tests/templates/registration/password_reset_confirm.html b/django/contrib/auth/tests/templates/registration/password_reset_confirm.html new file mode 100644 index 0000000000..8f06c57793 --- /dev/null +++ b/django/contrib/auth/tests/templates/registration/password_reset_confirm.html @@ -0,0 +1,5 @@ +{% if validlink %} +Please enter your new password: {{ form }} +{% else %} +The password reset link was invalid +{% endif %} \ No newline at end of file diff --git a/django/contrib/auth/tests/templates/registration/password_reset_done.html b/django/contrib/auth/tests/templates/registration/password_reset_done.html new file mode 100644 index 0000000000..d56b10f0d5 --- /dev/null +++ b/django/contrib/auth/tests/templates/registration/password_reset_done.html @@ -0,0 +1 @@ +E-mail sent \ No newline at end of file diff --git a/django/contrib/auth/tests/templates/registration/password_reset_email.html b/django/contrib/auth/tests/templates/registration/password_reset_email.html new file mode 100644 index 0000000000..1b9a48255a --- /dev/null +++ b/django/contrib/auth/tests/templates/registration/password_reset_email.html @@ -0,0 +1 @@ +{{ protocol }}://{{ domain }}/reset/{{ uid }}-{{ token }}/ \ No newline at end of file diff --git a/django/contrib/auth/tests/templates/registration/password_reset_form.html b/django/contrib/auth/tests/templates/registration/password_reset_form.html new file mode 100644 index 0000000000..d960111992 --- /dev/null +++ b/django/contrib/auth/tests/templates/registration/password_reset_form.html @@ -0,0 +1 @@ +{{ form }} \ No newline at end of file diff --git a/django/contrib/auth/tests/views.py b/django/contrib/auth/tests/views.py index 532f92b523..11adaf1790 100644 --- a/django/contrib/auth/tests/views.py +++ b/django/contrib/auth/tests/views.py @@ -37,16 +37,6 @@ class AuthViewsTestCase(TestCase): class PasswordResetTest(AuthViewsTestCase): - def setUp(self): - self.old_LANGUAGES = settings.LANGUAGES - self.old_LANGUAGE_CODE = settings.LANGUAGE_CODE - settings.LANGUAGES = (('en', 'English'),) - settings.LANGUAGE_CODE = 'en' - - def tearDown(self): - settings.LANGUAGES = self.old_LANGUAGES - settings.LANGUAGE_CODE = self.old_LANGUAGE_CODE - def test_email_not_found(self): "Error is raised if the provided email address isn't currently registered" response = self.client.get('/password_reset/')