Thursday, August 2, 2012

Re: Weird test-behaviour in combination with localization

On 31-7-2012 21:21, Andre Schemschat wrote:

> Now, if i run all tests, not just for that specific view, the test fails,
> because the view returnes {'fielda':'This field is required.'} instead of
> the german localization. I checked the settings.LANGUAGE_CODE-value in the
> view and in the test, in both cases it is de-de.
> Any ideas, why my test is fine if it runs alone and fails when all tests of
> the project (including the django-ones) are run? Im fresh out of ideas and
> a little bit puzzled :D

On a hunch, I suspect the LOCALE_PATHS setting to be the culprit.

--
Melvyn Sopacua

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment