def test_suite(): suite = unittest.TestSuite() suite.addTest(unittest.makeSuite(WikiTagProviderTestCase)) suite.addTest(wikisyntax_test_suite(TEST_CASES, wiki_setup, __file__, wiki_teardown)) suite.addTest(wikisyntax_test_suite(TEST_NOPERM, wiki_setup_no_perm, __file__, wiki_teardown)) return suite
def test_suite(data=None, setup=None, file=__file__, teardown=None, context=None): suite = unittest.TestSuite() if data: suite.addTest(wikisyntax_test_suite(data, setup, file, teardown, context)) else: for filename in ('wiki-tests.txt', 'wikicreole-tests.txt'): filepath = os.path.join(os.path.dirname(file), filename) suite.addTest(wikisyntax_test_suite(data, setup, filepath, teardown, context)) return suite
def test_suite(): suite = unittest.TestSuite() suite.addTest(unittest.makeSuite(TagTemplateProviderTestCase)) suite.addTest(unittest.makeSuite(ListTaggedMacroTestCase)) suite.addTest( wikisyntax_test_suite(LISTTAGGED_MACRO_TEST_CASES, listtagged_setup, __file__, listtagged_teardown, enable_components=('trac.*', 'tractags.*'))) suite.addTest(unittest.makeSuite(TagCloudMacroTestCase)) suite.addTest(unittest.makeSuite(QueryRealmsTestCase)) return suite