#15016: Minor contrib.messages test isolation problem
---------------------------+------------------------------------------------
Reporter: gabrielhurley | Owner: gabrielhurley
Status: new | Milestone: 1.3
Component: Contrib apps | Version: SVN
Keywords: | Stage: Unreviewed
Has_patch: 0 |
---------------------------+------------------------------------------------
When running `manage.py test` on a project with `django.contrib.messages`
in `INSTALLED_APPS`, if you have a customized `500.html` template which
uses the `{% url %}` tag to try and resolve any namespaced urls you'll get
errors from the `test_middleware_disabled_anon_user` test for each of the
message backend test classes. Since the base test class overrides the
project urls, any custom url namespaces are unresolvable when the test
intentionally triggers a server error, causing the test to error out.
Basically the test just needs better isolation from the rest of the
project.
--
Ticket URL: <http://code.djangoproject.com/ticket/15016>
Django <http://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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.