[Erp5-report] r45162 luke - /erp5/trunk/products/ERP5/tests/testBusinessTemplate.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Apr 7 11:34:38 CEST 2011


Author: luke
Date: Thu Apr  7 11:34:37 2011
New Revision: 45162

URL: http://svn.erp5.org?rev=45162&view=rev
Log:
 - fix method (it was doing inverted thing)
 - fix test code and simulate previous base code
 - assert that filesystem property sheet is removed, not ZODB one, as
   simulation mode is on

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=45162&r1=45161&r2=45162&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testBusinessTemplate.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testBusinessTemplate.py [utf8] Thu Apr  7 11:34:37 2011
@@ -7442,11 +7442,14 @@ class TestBusinessTemplate(ERP5TypeTestC
     """
     Add Property Sheet to Business Template
     """
-    sequence['current_bt'].edit(template_property_sheet_id_list=[sequence['ps_title']])
+    sequence['current_bt'].edit(template_property_sheet_id_list=[])
 
   def test_BusinessTemplateWithDocumentPropertySheetRemoved(self):
     """Checks that if Business Template defines Document and PropertySheet
-    Document is not removed"""
+    Document is not removed
+    
+    This test uses simulation of pre-property sheet migration to have non unique
+    paths to remove"""
     sequence_list = SequenceList()
     sequence_string = '\
                        CreateDocument \
@@ -7474,7 +7477,7 @@ class TestBusinessTemplate(ERP5TypeTestC
                        CheckDocumentExists \
                        CheckPropertySheetExists \
                        \
-                       CopyBusinessTemplate \
+                       SimulateAndCopyPrePropertySheetMigrationBusinessTemplate \
                        Tic \
                        \
                        RemovePropertySheetFromBusinessTemplate \
@@ -7484,7 +7487,7 @@ class TestBusinessTemplate(ERP5TypeTestC
                        UseImportBusinessTemplate \
                        CheckBuiltBuildingState \
                        CheckNotInstalledInstallationState \
-                       InstallBusinessTemplate \
+                       InstallWithoutForceBusinessTemplate \
                        Tic \
                        \
                        CheckInstalledInstallationState \



More information about the Erp5-report mailing list