Changeset 40 for mergebot/trunk/utils
- Timestamp:
- Feb 23, 2010 3:39:32 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
mergebot/trunk/utils/test.py
r17 r40 12 12 13 13 14 from trac.tests.functional import FunctionalTestSuite, FunctionalTestEnvironment, FunctionalTester, FunctionalTwillTestCaseSetup, tc, b, logfile 14 from trac.tests.functional import FunctionalTestSuite, FunctionalTester, FunctionalTwillTestCaseSetup, tc, b, logfile 15 from trac.tests.functional.svntestenv import SvnFunctionalTestEnvironment 15 16 from trac.tests.contentgen import random_page #, random_sentence, random_word 16 17 … … 148 149 port = 8889 149 150 baseurl = "http://localhost:%s" % port 150 self._testenv = FunctionalTestEnvironment("testenv%s" % port, port, baseurl)151 self._testenv = SvnFunctionalTestEnvironment("testenv%s" % port, port, baseurl) 151 152 152 153 # Configure mergebot 153 154 env = self._testenv.get_trac_environment() 154 155 env.config.set('components', 'mergebot.web_ui.mergebotmodule', 'enabled') 156 env.config.save() 157 self._testenv._tracadmin('upgrade') # sets up the bulk of the mergebot config 158 env.config.parse_if_needed() 155 159 env.config.set('mergebot', 'repository_url', self._testenv.repo_url()) 156 env.config.set('mergebot', 'work_dir', self._testenv.repodir + '/mergebot')157 158 env.config.set('ticket-custom', 'mergebotstate', 'select')159 env.config.set('ticket-custom', 'mergebotstate.editable', '0')160 env.config.set('ticket-custom', 'mergebotstate.label', 'MergeBotState')161 env.config.set('ticket-custom', 'mergebotstate.options', '| tomerge | merged | tobranch | branched | conflicts')162 env.config.set('ticket-custom', 'mergebotstate.order', '2')163 env.config.set('ticket-custom', 'mergebotstate.value', '')164 165 160 env.config.set('logging', 'log_type', 'file') 166 167 161 env.config.save() 168 162 env.config.parse_if_needed() 169 163 170 164 self._testenv.start() 171 self._tester = MergeBotFunctionalTester(baseurl, self._testenv.repo_url()) 165 self._tester = MergeBotFunctionalTester(baseurl) 166 self.fixture = (self._testenv, self._tester) 172 167 173 168 # Setup some common component stuff for MergeBot's use:
Note: See TracChangeset
for help on using the changeset viewer.