[Erp5-report] r45175 luke - /erp5/trunk/products/ERP5/tests/testBusinessTemplate.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Apr 7 14:20:38 CEST 2011
Author: luke
Date: Thu Apr 7 14:20:37 2011
New Revision: 45175
URL: http://svn.erp5.org?rev=45175&view=rev
Log:
- revert 45174, as in this case specification needs to be stabilised before testing
Modified:
erp5/trunk/products/ERP5/tests/testBusinessTemplate.py
Modified: erp5/trunk/products/ERP5/tests/testBusinessTemplate.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testBusinessTemplate.py?rev=45175&r1=45174&r2=45175&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testBusinessTemplate.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testBusinessTemplate.py [utf8] Thu Apr 7 14:20:37 2011
@@ -7399,7 +7399,11 @@ class TestBusinessTemplate(ERP5TypeTestC
"""
sequence['current_bt'].edit(template_test_id_list=[])
- business_template_with_document_test = '\
+ def test_BusinessTemplateWithDocumentTestRemoved(self):
+ """Checks that if Business Template defines Document and Test
+ Document is not removed"""
+ sequence_list = SequenceList()
+ sequence_string = '\
CreateDocument \
CreateTest \
CheckDocumentTestSameName \
@@ -7408,7 +7412,7 @@ class TestBusinessTemplate(ERP5TypeTestC
AddDocumentToBusinessTemplate \
AddTestToBusinessTemplate \
CheckModifiedBuildingState \
- ' + save_current_business_template_sequence_string + '\
+ ' + self.save_current_business_template_sequence_string + '\
RemoveDocument \
RemoveTest \
RemoveBusinessTemplate \
@@ -7416,13 +7420,7 @@ class TestBusinessTemplate(ERP5TypeTestC
ImportBusinessTemplate \
UseImportBusinessTemplate \
CheckBuiltBuildingState \
- CheckNotInstalledInstallationState'
-
- def test_BusinessTemplateWithDocumentTestRemoved(self):
- """Checks that if Business Template defines Document and Test
- Document is not removed"""
- sequence_list = SequenceList()
- sequence_string = self.business_template_with_document_test + '\
+ CheckNotInstalledInstallationState \
InstallBusinessTemplate \
Tic \
CheckInstalledInstallationState \
@@ -7452,20 +7450,6 @@ class TestBusinessTemplate(ERP5TypeTestC
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
- def stepCheckDocumenTestPreinstall(self, sequence=None, **kw):
- bt = sequence['current_bt']
- self.assertEqual(
- {'UnitTest': ['New', 'Test']}, {'UnitTest': ['New', 'Document']}
- )
-
- def test_BusinessTemplateWithDocumentTestPreinstallCheck(self):
- sequence_list = SequenceList()
- sequence_string = self.business_template_with_document_test + '\
- CheckDocumenTestPreinstall \
- '
- sequence_list.addSequenceString(sequence_string)
- sequence_list.play(self)
-
def stepCreateAllPropertySheetsFromFilesystem(self, sequence=None, **kw):
self.portal.portal_property_sheets.createAllPropertySheetsFromFilesystem()
More information about the Erp5-report
mailing list