Commit 0d7dbc21 authored by Fabien Morin's avatar Fabien Morin

remove the quiet and run_all_test parameter and LOG because it's now not

usefull (see runUnitTest.py --help). Thanks to Jerome


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20247 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bcbfbc5e
...@@ -60,13 +60,9 @@ class TestScribusUtils(ERP5TypeTestCase): ...@@ -60,13 +60,9 @@ class TestScribusUtils(ERP5TypeTestCase):
os.path.join(os.path.dirname(__file__), os.path.join(os.path.dirname(__file__),
'data', filename), 'rb') 'data', filename), 'rb')
def test_01_SimpleModuleCreation(self, quiet=0, run=run_all_test): def test_01_SimpleModuleCreation(self):
''' Just create a module using scribus file and pdf file with minimal '''Just create a module using scribus file and pdf file with minimal
option''' option'''
if not run: return
if not quiet:
ZopeTestCase._print('\ntest_01_SimpleModuleCreation')
LOG('Testing... ',0,'test_01_SimpleModuleCreation')
self.portal.ERP5Site_createModuleScribus( self.portal.ERP5Site_createModuleScribus(
module_portal_type="Dummy Module", module_portal_type="Dummy Module",
...@@ -88,13 +84,9 @@ class TestScribusUtils(ERP5TypeTestCase): ...@@ -88,13 +84,9 @@ class TestScribusUtils(ERP5TypeTestCase):
self.assertNotEqual(self.portal.portal_types.getTypeInfo("Dummy"), None) 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 '''Create a module with the option_html. That mean, a background will be
generated (using convert), and a css file created''' 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.portal.ERP5Site_createModuleScribus(
self, self,
...@@ -125,12 +117,8 @@ class TestScribusUtils(ERP5TypeTestCase): ...@@ -125,12 +117,8 @@ class TestScribusUtils(ERP5TypeTestCase):
self.assertNotEquals(background_object, None) 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''' '''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( self.portal.ERP5Site_createModuleScribus(
module_portal_type="Dummy Module", module_portal_type="Dummy Module",
...@@ -157,14 +145,10 @@ class TestScribusUtils(ERP5TypeTestCase): ...@@ -157,14 +145,10 @@ class TestScribusUtils(ERP5TypeTestCase):
self.portal.changeSkin(None) self.portal.changeSkin(None)
self.portal.dummy_module.DummyModule_viewDummyList() 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. ''' Update a module created with a scribus file and pdf file.
Change a field name in the new scribus file, and check that after Change a field name in the new scribus file, and check that after
update, the ERP5 StringField have the new name.''' 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: # first module creation:
self.portal.ERP5Site_createModuleScribus( self.portal.ERP5Site_createModuleScribus(
......
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