Re: testing validation of form in unit testing

2009-02-20 Thread Vitaly
Here's the code that process all steps in unittest with checking validation form: http://dpaste.com/123059/ What I have tryed is to collect data myself as fixture to test the form validation. Thanks On Feb 20, 7:00 pm, Briel wrote: > You don't give a lot information about what is happening, s

Re: testing validation of form in unit testing

2009-02-20 Thread Briel
You don't give a lot information about what is happening, so I'm stabbing a bit in the dark here... I would guess your problem is that you have created a form which has a filefield that is required. Even though you probably upload a file and maybe even pass it to the form, you are not doing it in

testing validation of form in unit testing

2009-02-20 Thread Vitaly
Hi all I have a test that validate processed data to form with FileField. My steps in it direct me right to one problem. here is it. 'file' is 'Required field' What I do is process simple data right to form, not request.POST and request.FILES. I have tried process in data SimpleUploadedFile but