On Thu, Sep 17, 2009 at 12:09 PM, Chris Withers <[email protected]>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 file or directory named tests with an __init__.py that imports whatever tests you want included. Alternatively you can define your own suite() function within tests that does whatever you want in terms of test discovery. (Note the test runner also loads test from models as well.) Karen --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

