Commit b998969f authored by Jérome Perrin's avatar Jérome Perrin

test: rename testUpgradeInstanceWithOldDataFs "legacy workflow"

parent 1fac3ba6
...@@ -33,7 +33,7 @@ from six.moves.urllib.parse import urlencode ...@@ -33,7 +33,7 @@ from six.moves.urllib.parse import urlencode
import six.moves.http_client import six.moves.http_client
class TestUpgradeInstanceWithOldDataFs(ERP5TypeTestCase): class TestUpgradeInstanceWithOldDataFsWithLegacyWorkflow(ERP5TypeTestCase):
def getBusinessTemplateList(self): def getBusinessTemplateList(self):
return ('erp5_core_proxy_field_legacy', return ('erp5_core_proxy_field_legacy',
...@@ -155,5 +155,5 @@ class TestUpgradeInstanceWithOldDataFs(ERP5TypeTestCase): ...@@ -155,5 +155,5 @@ class TestUpgradeInstanceWithOldDataFs(ERP5TypeTestCase):
def test_suite(): def test_suite():
suite = unittest.TestSuite() suite = unittest.TestSuite()
if WITH_LEGACY_WORKFLOW: if WITH_LEGACY_WORKFLOW:
suite.addTest(unittest.makeSuite(TestUpgradeInstanceWithOldDataFs)) suite.addTest(unittest.makeSuite(TestUpgradeInstanceWithOldDataFsWithLegacyWorkflow))
return suite return suite
...@@ -114,7 +114,7 @@ class ERP5(_ERP5): ...@@ -114,7 +114,7 @@ class ERP5(_ERP5):
return self.runUnitTest('--load', '--save', '--with_wendelin_core', full_test) return self.runUnitTest('--load', '--save', '--with_wendelin_core', full_test)
elif test.startswith('testFunctional'): elif test.startswith('testFunctional'):
return self._updateFunctionalTestResponse(self.runUnitTest(full_test)) return self._updateFunctionalTestResponse(self.runUnitTest(full_test))
elif test == 'testUpgradeInstanceWithOldDataFs': elif test.startswith('testUpgradeInstanceWithOldDataFs'):
old_data_path = None old_data_path = None
for path in sys.path: for path in sys.path:
if path.endswith('/erp5-bin'): if path.endswith('/erp5-bin'):
......
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