Re: where to put tests?

2009-09-17 Thread Chris Withers
Javier Guerra wrote: > reasonable-sized apps aren't too big; reasonably-factored projects > have lots of apps > > but, yeah, you're right that using a 'test' directory with an empty > __ini__.py and the tests files inside that should work... Nope, only finds them if you have a suite() function

Re: where to put tests?

2009-09-17 Thread Javier Guerra
On Thu, Sep 17, 2009 at 11:09 AM, Chris Withers wrote: > It strikes me that if a reasonable-sized app is fully tested, that > tests.py is going to be unpleasantly long. reasonable-sized apps aren't too big; reasonably-factored projects have lots of apps but, yeah,

Re: where to put tests?

2009-09-17 Thread Karen Tracey
On Thu, Sep 17, 2009 at 12:09 PM, Chris Withers wrote: > > Hi All, > > Will the Django testrunner really only find tests in a file called test.py? > > No, it loads tests from a module named tests (note there is an s on the end of that). That might be a single tests.py

where to put tests?

2009-09-17 Thread Chris Withers
Hi All, Will the Django testrunner really only find tests in a file called test.py? It strikes me that if a reasonable-sized app is fully tested, that tests.py is going to be unpleasantly long. How come the testrunner doesn't look for a package called tests like most of the other python