Re: Tests in files other than tests.py and models.py

2008-06-25 Thread Ben Ford
The testrunner is probably the way to go! I do this: # somemod.test.py from somemod import testing as reg # testing is a package with various modules inside __test__ = { 'create_tracker': reg.process.create_tracker, 'create_new_user': reg.process.create_new_user, 'default_promo': reg.

Tests in files other than tests.py and models.py

2008-06-24 Thread Andrew Fong
A quick browse of a few other posts on the list tell me this question has been asked before but the previous answers didn't exactly work for me. I created my own solution, but given that I'm very much a Django (and Python) newbie, if there are any glaring errors in my approach, please point them o