Commit 9d1b90c0 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

test: skip testUpgradeInstanceWithOldDataFs if WITH_LEGACY_WORKFLOW is False.

because it contains legacy workflow objects.
parent 240d2092
...@@ -26,7 +26,9 @@ ...@@ -26,7 +26,9 @@
# #
############################################################################## ##############################################################################
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5Type import WITH_LEGACY_WORKFLOW
import StringIO import StringIO
import unittest
import urllib import urllib
import httplib import httplib
...@@ -149,3 +151,9 @@ class TestUpgradeInstanceWithOldDataFs(ERP5TypeTestCase): ...@@ -149,3 +151,9 @@ class TestUpgradeInstanceWithOldDataFs(ERP5TypeTestCase):
self.assertEquals( self.assertEquals(
error_list, [], error_list, [],
msg="The following Portal Type classes could not be loaded (see zLOG.log): %r" % error_list) msg="The following Portal Type classes could not be loaded (see zLOG.log): %r" % error_list)
def test_suite():
suite = unittest.TestSuite()
if WITH_LEGACY_WORKFLOW:
suite.addTest(unittest.makeSuite(TestUpgradeInstanceWithOldDataFs))
return suite
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