def suite(): from acct_mgr.tests import htfile, db suite = unittest.TestSuite() suite.addTest(htfile.suite()) suite.addTest(db.suite()) if INCLUDE_FUNCTIONAL_TESTS: from acct_mgr.tests.functional import suite as functional_suite suite.addTest(functional_suite()) return suite
def suite(): from acct_mgr.tests import admin, api, db, guard, htfile, model, register from acct_mgr.tests import util suite = unittest.TestSuite() suite.addTest(admin.suite()) suite.addTest(api.suite()) suite.addTest(db.suite()) suite.addTest(guard.suite()) suite.addTest(htfile.suite()) suite.addTest(model.suite()) suite.addTest(register.suite()) suite.addTest(util.suite()) if INCLUDE_FUNCTIONAL_TESTS: from acct_mgr.tests.functional import suite as functional_suite suite.addTest(functional_suite()) return suite