Commit 272e3977 authored by Sebastien Robin's avatar Sebastien Robin

make unit test compatible with runUnitTest.py

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3842 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent db416ddd
...@@ -52,7 +52,7 @@ from Products.ERP5SyncML.SyncCode import SyncCode ...@@ -52,7 +52,7 @@ from Products.ERP5SyncML.SyncCode import SyncCode
from zLOG import LOG from zLOG import LOG
import time import time
class Test(ERP5TypeTestCase): class TestDomainTool(ERP5TypeTestCase):
# Different variables used for this test # Different variables used for this test
run_all_test = 1 run_all_test = 1
...@@ -367,12 +367,3 @@ class Test(ERP5TypeTestCase): ...@@ -367,12 +367,3 @@ class Test(ERP5TypeTestCase):
self.assertEquals(self.resource.getPrice( self.resource.asContext(categories=['resource/%s' % self.resource.getRelativeUrl(),'variation/%s/blue' % self.resource.getRelativeUrl()]),sort_method=sort_method),45) self.assertEquals(self.resource.getPrice( self.resource.asContext(categories=['resource/%s' % self.resource.getRelativeUrl(),'variation/%s/blue' % self.resource.getRelativeUrl()]),sort_method=sort_method),45)
if __name__ == '__main__':
framework()
else:
import unittest
def test_suite():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(Test))
return suite
...@@ -53,7 +53,7 @@ from AccessControl.SecurityManagement import newSecurityManager, noSecurityManag ...@@ -53,7 +53,7 @@ from AccessControl.SecurityManagement import newSecurityManager, noSecurityManag
from zLOG import LOG from zLOG import LOG
import time import time
class Test(ERP5TypeTestCase): class TestERP5Category(ERP5TypeTestCase):
# Different variables used for this test # Different variables used for this test
run_all_test = 1 run_all_test = 1
......
...@@ -53,7 +53,7 @@ from AccessControl.SecurityManagement import newSecurityManager, noSecurityManag ...@@ -53,7 +53,7 @@ from AccessControl.SecurityManagement import newSecurityManager, noSecurityManag
from zLOG import LOG from zLOG import LOG
import time import time
class Test(ERP5TypeTestCase): class TestInteractionWorkflow(ERP5TypeTestCase):
# Different variables used for this test # Different variables used for this test
run_all_test = 1 run_all_test = 1
......
...@@ -69,7 +69,7 @@ from testOrder import TestOrderMixin ...@@ -69,7 +69,7 @@ from testOrder import TestOrderMixin
from Products.ERP5Form.Selection import DomainSelection from Products.ERP5Form.Selection import DomainSelection
class Test(TestOrderMixin,ERP5TypeTestCase): class TestInventory(TestOrderMixin,ERP5TypeTestCase):
""" """
Test Transformations Test Transformations
""" """
......
...@@ -55,7 +55,7 @@ import os ...@@ -55,7 +55,7 @@ import os
from Products.ERP5Type import product_path from Products.ERP5Type import product_path
from DateTime import DateTime from DateTime import DateTime
class Test(ERP5TypeTestCase): class TestInvoice(ERP5TypeTestCase):
""" """
This is the list of test This is the list of test
...@@ -579,14 +579,3 @@ class Test(ERP5TypeTestCase): ...@@ -579,14 +579,3 @@ class Test(ERP5TypeTestCase):
sequence_list.play(self) sequence_list.play(self)
if __name__ == '__main__':
framework()
else:
import unittest
def test_suite():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(Test))
return suite
...@@ -55,7 +55,7 @@ from Products.ERP5Type import product_path ...@@ -55,7 +55,7 @@ from Products.ERP5Type import product_path
from Products.CMFCore.utils import getToolByName from Products.CMFCore.utils import getToolByName
from testOrder import TestOrderMixin from testOrder import TestOrderMixin
class Test(TestOrderMixin,ERP5TypeTestCase): class TestPackingList(TestOrderMixin,ERP5TypeTestCase):
""" """
Test business template erp5_trade Test business template erp5_trade
""" """
......
...@@ -56,7 +56,7 @@ from Products.ERP5Type import product_path ...@@ -56,7 +56,7 @@ from Products.ERP5Type import product_path
from Products.CMFCore.utils import getToolByName from Products.CMFCore.utils import getToolByName
from testOrder import TestOrderMixin from testOrder import TestOrderMixin
class Test(TestOrderMixin,ERP5TypeTestCase): class TestTransformation(TestOrderMixin,ERP5TypeTestCase):
""" """
Test Transformations Test Transformations
""" """
...@@ -708,13 +708,3 @@ class Test(TestOrderMixin,ERP5TypeTestCase): ...@@ -708,13 +708,3 @@ class Test(TestOrderMixin,ERP5TypeTestCase):
sequence_list.play(self) sequence_list.play(self)
if __name__ == '__main__':
framework()
else:
import unittest
def test_suite():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(Test))
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