[Erp5-report] r20247 - /erp5/trunk/products/ERP5Form/tests/testScribusUtils.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Apr 1 11:26:44 CEST 2008
Author: fabien
Date: Tue Apr 1 11:26:42 2008
New Revision: 20247
URL: http://svn.erp5.org?rev=20247&view=rev
Log:
remove the quiet and run_all_test parameter and LOG because it's now not
usefull (see runUnitTest.py --help). Thanks to Jerome
Modified:
erp5/trunk/products/ERP5Form/tests/testScribusUtils.py
Modified: erp5/trunk/products/ERP5Form/tests/testScribusUtils.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Form/tests/testScribusUtils.py?rev=20247&r1=20246&r2=20247&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Form/tests/testScribusUtils.py (original)
+++ erp5/trunk/products/ERP5Form/tests/testScribusUtils.py Tue Apr 1 11:26:42 2008
@@ -60,13 +60,9 @@
os.path.join(os.path.dirname(__file__),
'data', filename), 'rb')
- def test_01_SimpleModuleCreation(self, quiet=0, run=run_all_test):
- ''' Just create a module using scribus file and pdf file with minimal
- option'''
- if not run: return
- if not quiet:
- ZopeTestCase._print('\ntest_01_SimpleModuleCreation')
- LOG('Testing... ',0,'test_01_SimpleModuleCreation')
+ def test_01_SimpleModuleCreation(self):
+ '''Just create a module using scribus file and pdf file with minimal
+ option'''
self.portal.ERP5Site_createModuleScribus(
module_portal_type="Dummy Module",
@@ -88,13 +84,9 @@
self.assertNotEqual(self.portal.portal_types.getTypeInfo("Dummy"), None)
- def test_02_ModuleCreationWithBackground(self, quiet=0, run=run_all_test):
+ def test_02_ModuleCreationWithBackground(self):
'''Create a module with the option_html. That mean, a background will be
generated (using convert), and a css file created'''
- if not run: return
- if not quiet:
- ZopeTestCase._print('\ntest_02_ModuleCreationWithBackground')
- LOG('Testing... ',0,'test_02_ModuleCreationWithBackground')
self.portal.ERP5Site_createModuleScribus(
self,
@@ -125,12 +117,8 @@
self.assertNotEquals(background_object, None)
- def test_03_ModuleListBox(self, quiet=0, run=run_all_test):
+ def test_03_ModuleListBox(self):
'''Check the module listBox could be rendered without errors'''
- if not run: return
- if not quiet:
- ZopeTestCase._print('\ntest_03_ModuleListBox')
- LOG('Testing... ',0,'test_03_ModuleListBox')
self.portal.ERP5Site_createModuleScribus(
module_portal_type="Dummy Module",
@@ -157,14 +145,10 @@
self.portal.changeSkin(None)
self.portal.dummy_module.DummyModule_viewDummyList()
- def test_04_SimpleModuleUpdate(self, quiet=0, run=run_all_test):
+ def test_04_SimpleModuleUpdate(self):
''' Update a module created with a scribus file and pdf file.
Change a field name in the new scribus file, and check that after
update, the ERP5 StringField have the new name.'''
- if not run: return
- if not quiet:
- ZopeTestCase._print('\ntest_04_SimpleModuleUpdate')
- LOG('Testing... ',0,'test_04_SimpleModuleUpdate')
# first module creation:
self.portal.ERP5Site_createModuleScribus(
More information about the Erp5-report
mailing list