Re: Weird test-behaviour in combination with localization

2012-08-02 Thread Melvyn Sopacua
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

Re: Weird test-behaviour in combination with localization

2012-07-31 Thread Andre Schemschat
Ok, so I fixed my problem, but i have the feelings this cant really be a longterm solution ^^. If i create my own testsuite and skip all django-apps, the tests pass, if i comment them in, they wont run (With the above error). is there a possibility django changes the language-settings somehow w

Weird test-behaviour in combination with localization

2012-07-31 Thread Andre Schemschat
Hey together, I was just writing some tests for my views and i stumbled upon a localization error, which i cant figure out :/ I have a test that checks the form-validation returnes the correct errors-messages for specific input data. Basicly what i feed to the view are the field-names and their