Commit 8e772f01 authored by Jérome Perrin's avatar Jérome Perrin

no need to execfile(framework) or to set EVENT_LOG_FILE, it's now done by test

runner


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21178 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0f5f8e5c
...@@ -27,14 +27,7 @@ ...@@ -27,14 +27,7 @@
# #
############################################################################## ##############################################################################
import os, sys import unittest
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 Testing import ZopeTestCase
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from AccessControl.SecurityManagement import newSecurityManager from AccessControl.SecurityManagement import newSecurityManager
...@@ -1596,11 +1589,7 @@ wuIFtde33Dp3NkZl9fc2Rmw6fDp8OnX2RmX19fJibDqV1dXcKwwrDCsMKwwrDCsA==' ...@@ -1596,11 +1589,7 @@ wuIFtde33Dp3NkZl9fc2Rmw6fDp8OnX2RmX19fJibDqV1dXcKwwrDCsMKwwrDCsA=='
self.last_name3, person1_s, person1_c) self.last_name3, person1_s, person1_c)
self.checkSynchronizationStateIsSynchronized() self.checkSynchronizationStateIsSynchronized()
if __name__ == '__main__': def test_suite():
framework()
else:
import unittest
def test_suite():
suite = unittest.TestSuite() suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(TestERP5SyncML)) suite.addTest(unittest.makeSuite(TestERP5SyncML))
return suite 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