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
from zLOG import LOG
import time
class Test(ERP5TypeTestCase):
class TestDomainTool(ERP5TypeTestCase):
# Different variables used for this test
run_all_test = 1
......@@ -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)
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
from zLOG import LOG
import time
class Test(ERP5TypeTestCase):
class TestERP5Category(ERP5TypeTestCase):
# Different variables used for this test
run_all_test = 1
......
......@@ -53,7 +53,7 @@ from AccessControl.SecurityManagement import newSecurityManager, noSecurityManag
from zLOG import LOG
import time
class Test(ERP5TypeTestCase):
class TestInteractionWorkflow(ERP5TypeTestCase):
# Different variables used for this test
run_all_test = 1
......
......@@ -69,7 +69,7 @@ from testOrder import TestOrderMixin
from Products.ERP5Form.Selection import DomainSelection
class Test(TestOrderMixin,ERP5TypeTestCase):
class TestInventory(TestOrderMixin,ERP5TypeTestCase):
"""
Test Transformations
"""
......
......@@ -55,7 +55,7 @@ import os
from Products.ERP5Type import product_path
from DateTime import DateTime
class Test(ERP5TypeTestCase):
class TestInvoice(ERP5TypeTestCase):
"""
This is the list of test
......@@ -579,14 +579,3 @@ class Test(ERP5TypeTestCase):
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
from Products.CMFCore.utils import getToolByName
from testOrder import TestOrderMixin
class Test(TestOrderMixin,ERP5TypeTestCase):
class TestPackingList(TestOrderMixin,ERP5TypeTestCase):
"""
Test business template erp5_trade
"""
......
......@@ -56,7 +56,7 @@ from Products.ERP5Type import product_path
from Products.CMFCore.utils import getToolByName
from testOrder import TestOrderMixin
class Test(TestOrderMixin,ERP5TypeTestCase):
class TestTransformation(TestOrderMixin,ERP5TypeTestCase):
"""
Test Transformations
"""
......@@ -708,13 +708,3 @@ class Test(TestOrderMixin,ERP5TypeTestCase):
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