Commit 51e38faf authored by Jérome Perrin's avatar Jérome Perrin

makeSuite using TestAmount class


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8486 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 60da2010
......@@ -27,7 +27,7 @@
##############################################################################
import os, sys
if __name__ == '__main__':
execfile(os.path.join(sys.path[0], 'framework.py'))
execfile(os.path.join(sys.path[0], 'framework.py'))
# Needed in order to have a log file inside the current folder
os.environ['EVENT_LOG_FILE'] = os.path.join(os.getcwd(), 'zLOG.log')
......@@ -245,10 +245,10 @@ class TestAmount(ERP5TypeTestCase):
sequence_list.play(self)
if __name__ == '__main__':
framework()
framework()
else:
import unittest
def test_suite():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(TestConstraint))
return suite
import unittest
def test_suite():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(TestAmount))
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