Issue #22 open

Test problem

Anonymous created an issue

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

{{{

!python

====================================================================== 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/base.py", line 178, in test_full_request_response_cycle self.assertRedirects(response, show_url) File "/usr/local/lib/python2.7/dist-packages/django/test/testcases.py", 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:

{{{

!python

LANGUAGE_CODE = 'pt'

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

PREFIX_DEFAULT_LOCALE = False }}}

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 "manage.py 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