Commit 744ccd3b authored by Julien Muchembled's avatar Julien Muchembled

ERP5TypeFunctionalTestCase: init runner earlier so that subclass can modify it

Currently used to change user & password.
parent 56448ead
...@@ -328,6 +328,8 @@ class ERP5TypeFunctionalTestCase(ERP5TypeTestCase): ...@@ -328,6 +328,8 @@ class ERP5TypeFunctionalTestCase(ERP5TypeTestCase):
self.setSystemPreference() self.setSystemPreference()
self.portal.portal_tests.TestTool_cleanUpTestResults() self.portal.portal_tests.TestTool_cleanUpTestResults()
self.tic() self.tic()
self.runner = FunctionalTestRunner(self.serverhost, self.serverport,
self.portal, self.run_only, self.use_phanthom)
def setSystemPreference(self): def setSystemPreference(self):
conversion_dict = _getConversionServerDict() conversion_dict = _getConversionServerDict()
...@@ -358,8 +360,6 @@ class ERP5TypeFunctionalTestCase(ERP5TypeTestCase): ...@@ -358,8 +360,6 @@ class ERP5TypeFunctionalTestCase(ERP5TypeTestCase):
# first of all, abort to get rid of the mysql participation inn this # first of all, abort to get rid of the mysql participation inn this
# transaction # transaction
self.portal._p_jar.sync() self.portal._p_jar.sync()
self.runner = FunctionalTestRunner(self.serverhost, self.serverport,
self.portal, self.run_only, self.use_phanthom)
if self.remote_code_url_list is not None: if self.remote_code_url_list is not None:
self.runner.remote_code_url_list = self.remote_code_url_list self.runner.remote_code_url_list = self.remote_code_url_list
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment