[Erp5-report] r21178 - /erp5/trunk/products/ERP5SyncML/tests/testERP5SyncML.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed May 28 10:22:06 CEST 2008
Author: jerome
Date: Wed May 28 10:22:03 2008
New Revision: 21178
URL: http://svn.erp5.org?rev=21178&view=rev
Log:
no need to execfile(framework) or to set EVENT_LOG_FILE, it's now done by test
runner
Modified:
erp5/trunk/products/ERP5SyncML/tests/testERP5SyncML.py
Modified: erp5/trunk/products/ERP5SyncML/tests/testERP5SyncML.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5SyncML/tests/testERP5SyncML.py?rev=21178&r1=21177&r2=21178&view=diff
==============================================================================
--- erp5/trunk/products/ERP5SyncML/tests/testERP5SyncML.py (original)
+++ erp5/trunk/products/ERP5SyncML/tests/testERP5SyncML.py Wed May 28 10:22:03 2008
@@ -27,14 +27,7 @@
#
##############################################################################
-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'
-
+import unittest
from Testing import ZopeTestCase
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from AccessControl.SecurityManagement import newSecurityManager
@@ -1596,12 +1589,8 @@
self.last_name3, person1_s, person1_c)
self.checkSynchronizationStateIsSynchronized()
-if __name__ == '__main__':
- framework()
-else:
- import unittest
- def test_suite():
- suite = unittest.TestSuite()
- suite.addTest(unittest.makeSuite(TestERP5SyncML))
- return suite
-
+def test_suite():
+ suite = unittest.TestSuite()
+ suite.addTest(unittest.makeSuite(TestERP5SyncML))
+ return suite
+
More information about the Erp5-report
mailing list