Issue #22 open
Anonymous created an issue

If I run my " test" I receive this error when using localeurl:



====================================================================== FAIL: test_full_request_response_cycle (django.contrib.messages.tests.cookie.CookieTest)

Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/django/contrib/messages/tests/", line 178, in test_full_request_response_cycle self.assertRedirects(response, show_url) File "/usr/local/lib/python2.7/dist-packages/django/test/", line 405, in assertRedirects (url, expected_url)) AssertionError: Response redirected to 'http://testserver/show/', expected 'http://testserver/en/show/'


Here is my settings important part:




gettext = lambda s: s LANGUAGES = ( ('pt', gettext(u'Português')), ('en', gettext(u'Inglês')), )


The app itselfs it's working very well... but this Django test fails when i'm using it because the redirect.

Comments (2)

  1. Carl Meyer repo owner

    Not sure off the top of my head if there will be a reasonable solution to this problem, and I consider it a low-priority issue as I don't generally run reusable app tests from my projects (i.e. I never use just " test"), but I'd be happy to entertain suggested solutions if someone takes the time to look into it.

  2. Luc Jean

    I have similar issue with django 1.6. I didn't notice with django 1.5.

    It seems that the patch_reverse is called but somehow the django_reverse is restored by something.

  3. Log in to comment