Re: Tips on building a unit test for a ticket

2007-05-17 Thread Jacob Kaplan-Moss
On 5/13/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > - Right now, it looks like I'll end up creating a thumbnails directory > in /django/tests/regressiontests. Is this the right locattion? The general rule of thumb is: if you're testing a feature of the ORM -- a field, a database method, a

Re: Tips on building a unit test for a ticket

2007-05-13 Thread [EMAIL PROTECTED]
Good suggestion. I've played around with it a little and have some questions. - Right now, it looks like I'll end up creating a thumbnails directory in /django/tests/regressiontests. Is this the right locattion? - Trying to handle the image upload seems tricky since it is my understanding that n

Re: Tips on building a unit test for a ticket

2007-05-12 Thread Simon G.
... and while you're working out how to do it, it would be good to write it up for future reference :) (see: http://code.djangoproject.com/ticket/4223) --Simon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Djan

Re: Tips on building a unit test for a ticket

2007-05-12 Thread Malcolm Tredinnick
On Sat, 2007-05-12 at 06:28 -0700, [EMAIL PROTECTED] wrote: > I'm interested in helping to get #4115 (thumbnail contrib) in a state > that it's ready for checkin. I notice that there's a "needs design > decision" as well as "needs unit test" flag on this one. The question > I have for the devel

Tips on building a unit test for a ticket

2007-05-12 Thread [EMAIL PROTECTED]
I'm interested in helping to get #4115 (thumbnail contrib) in a state that it's ready for checkin. I notice that there's a "needs design decision" as well as "needs unit test" flag on this one. The question I have for the developers is, what does a unit test look like for this type of patch? A