from datetime import datetime, timedelta from trac.tests.contentgen import random_sentence, random_page, random_word, \ random_unique_camel from trac.test import TestSetup, TestCaseSetup internal_error = 'Trac detected an internal error:' trac_source_tree = os.path.normpath(os.path.join(trac.__file__, '..', '..')) # testing.log gets any unused output from subprocesses logfile = open(os.path.join(trac_source_tree, 'testing.log'), 'w') if twill: # functional-testing.log gets the twill output twill.set_output(open(os.path.join(trac_source_tree, 'functional-testing.log'), 'w')) from trac.tests.functional.testenv import FunctionalTestEnvironment from trac.tests.functional.svntestenv import SvnFunctionalTestEnvironment from trac.tests.functional.tester import FunctionalTester class FunctionalTestSuite(TestSetup): """TestSuite that provides a test fixture containing a FunctionalTestEnvironment and a FunctionalTester. """ if has_svn: env_class = SvnFunctionalTestEnvironment else:
from datetime import datetime, timedelta from trac.tests.contentgen import random_sentence, random_page, random_word, \ random_unique_camel from trac.test import TestSetup, TestCaseSetup internal_error = 'Trac detected an internal error:' trac_source_tree = os.path.normpath(os.path.join(trac.__file__, '..', '..')) # testing.log gets any unused output from subprocesses logfile = open(os.path.join(trac_source_tree, 'testing.log'), 'w') if twill: # functional-testing.log gets the twill output twill.set_output( open(os.path.join(trac_source_tree, 'functional-testing.log'), 'w')) from trac.tests.functional.testenv import FunctionalTestEnvironment from trac.tests.functional.svntestenv import SvnFunctionalTestEnvironment from trac.tests.functional.tester import FunctionalTester class FunctionalTestSuite(TestSetup): """TestSuite that provides a test fixture containing a FunctionalTestEnvironment and a FunctionalTester. """ if has_svn: env_class = SvnFunctionalTestEnvironment else: env_class = FunctionalTestEnvironment