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

No need to call framework, it's done by runUnitTest


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23627 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7e31d966
......@@ -27,17 +27,10 @@
##############################################################################
import os, sys
if __name__ == '__main__':
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')
os.environ['EVENT_LOG_SEVERITY'] = '-300'
from Testing import ZopeTestCase
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from AccessControl.SecurityManagement import newSecurityManager
from Products.CMFCore.permissions import *
from zLOG import LOG
SESSION_ID = "12345678"
......@@ -279,11 +272,8 @@ class TestCommerce(ERP5TypeTestCase):
len(portal.SaleOrder_getShoppingCartItemList()))
if __name__ == '__main__':
framework()
else:
import unittest
def test_suite():
import unittest
def test_suite():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(TestCommerce))
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