#11077: Django's built-in tests fail when using url reverse tags in default registration templates ---------------------------+------------------------------------------------ Reporter: srosro | Owner: nobody Status: new | Milestone: Component: Uncategorized | Version: 1.0 Keywords: | Stage: Unreviewed Has_patch: 0 | ---------------------------+------------------------------------------------ To reproduce: Create a new project. Create some registration templates (ie: templates/password_reset_form.html). Use the {% url %} template tag. For example, {% url index %}. Make sure you have a valid 'index' named url!
You should then get a failure when running the test suite: {{{ #python manage.py test Creating test database... Creating table auth_permission Creating table auth_group Creating table auth_user Creating table auth_message Creating table django_content_type Creating table django_session Creating table django_site Installing index for auth.Permission model Installing index for auth.Message model EE.EEEEEEE.F.... ... ====================================================================== ERROR: test_confirm_complete (django.contrib.auth.tests.views.PasswordResetTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Applications/Django/django- trunk/django/contrib/auth/tests/views.py", line 71, in test_confirm_complete url, path = self._test_confirm_start() File "/Applications/Django/django- trunk/django/contrib/auth/tests/views.py", line 31, in _test_confirm_start response = self.client.post('/password_reset/', {'email': 'staffmem...@example.com'}) File "/Applications/Django/django-trunk/django/test/client.py", line 299, in post return self.request(**r) File "/Applications/Django/django-trunk/django/core/handlers/base.py", line 86, in get_response response = callback(request, *callback_args, **callback_kwargs) File "/Applications/Django/django-trunk/django/contrib/auth/views.py", line 92, in password_reset form.save(**opts) File "/Applications/Django/django-trunk/django/contrib/auth/forms.py", line 135, in save t.render(Context(c)), None, [user.email]) File "/Applications/Django/django-trunk/django/test/utils.py", line 15, in instrumented_test_render return self.nodelist.render(context) File "/Applications/Django/django-trunk/django/template/__init__.py", line 768, in render bits.append(self.render_node(node, context)) File "/Applications/Django/django-trunk/django/template/debug.py", line 81, in render_node raise wrapped TemplateSyntaxError: Caught an exception while rendering: Reverse for 'testing1234.index' with arguments '()' and keyword arguments '{}' not found. Original Traceback (most recent call last): File "/Applications/Django/django-trunk/django/template/debug.py", line 71, in render_node result = node.render(context) File "/Applications/Django/django-trunk/django/template/defaulttags.py", line 387, in render args=args, kwargs=kwargs) File "/Applications/Django/django-trunk/django/core/urlresolvers.py", line 262, in reverse *args, **kwargs))) File "/Applications/Django/django-trunk/django/core/urlresolvers.py", line 251, in reverse "arguments '%s' not found." % (lookup_view, args, kwargs)) NoReverseMatch: Reverse for 'testing1234.index' with arguments '()' and keyword arguments '{}' not found. }}} -- Ticket URL: <http://code.djangoproject.com/ticket/11077> 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 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 -~----------~----~----~----~------~----~------~--~---