missing template files for correctly executing test cases on django.contrib.auth
This has taken me a while to wrap my head around. I hope I have it right.
When the test cases for django.contrib.auth run, they reassign settings.TEMPLATE_DIRS to use a local set of templates. This works fine for login purposes but the password reset pages don't exist in the current SVN repository so application paths are searched and if password_reset_email.html can be found elsewhere, its loaded and rendered. Unfortunately, since the test cases also use their own URLs, any references to named {% url %} tags in password_reset_email.html lead to NoReverseMatch exceptions.
Could someone please put some basic templates in the contrib/auth/tests/templates/ folder to avoid these errors?
Change History
(10)
Owner: |
changed from nobody to Arthur Koziel
|
Triage Stage: |
Unreviewed → Accepted
|
Has patch: |
set
|
milestone: |
→ 1.2
|
Triage Stage: |
Accepted → Ready for checkin
|
Owner: |
changed from Arthur Koziel to Chris Beaven
|
Status: |
new → assigned
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
Sorry, I havent had time to put these in patch format but the changes are trivial.
django/contrib/auth/tests/views.py:
django/contrib/auth/tests/templates/registration/password_reset_form.html
django/contrib/auth/tests/templates/registration/password_reset_email.html
django/contrib/auth/tests/templates/registration/password_reset_confirm.html
django/contrib/auth/tests/templates/registration/password_reset_done.html
django/contrib/auth/tests/templates/registration/password_reset_complete.html