Mercurial > bitten > bitten-test
view bitten/tests/__init__.py @ 895:7d93d6358fe0
Use our own HTTPBasicAuthHandler under Python 2.6 to avoid issue http://bugs.python.org/issue8797. Fixes #658.
author | hodgestar |
---|---|
date | Wed, 09 Mar 2011 14:48:35 +0000 |
parents | 7c80375d4817 |
children |
line wrap: on
line source
# -*- coding: utf-8 -*- # # Copyright (C) 2005-2007 Christopher Lenz <cmlenz@gmx.de> # Copyright (C) 2007-2010 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://bitten.edgewall.org/wiki/License. import unittest def master_suite(): from bitten.tests import admin, master, model, queue, web_ui, notify, \ upgrades from bitten.report import tests as report suite = unittest.TestSuite() suite.addTest(admin.suite()) suite.addTest(master.suite()) suite.addTest(model.suite()) suite.addTest(queue.suite()) suite.addTest(web_ui.suite()) suite.addTest(report.suite()) suite.addTest(notify.suite()) suite.addTest(upgrades.suite()) return suite def suite(): suite = unittest.TestSuite() try: import trac suite.addTest(master_suite()) except ImportError: print "\nTrac not installed -- Skipping master tests\n" import bitten.tests_slave suite.addTest(bitten.tests_slave.suite()) return suite if __name__ == '__main__': unittest.main(defaultTest='suite')