[Erp5-report] r32124 jerome - /erp5/trunk/products/ERP5Type/tests/testXMLMatrix.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Feb 1 11:42:45 CET 2010


Author: jerome
Date: Mon Feb  1 11:42:44 2010
New Revision: 32124

URL: http://svn.erp5.org?rev=32124&view=rev
Log:
remove test of matrix without activities. ERP5 is not really supposed to work
without portal_activities

Modified:
    erp5/trunk/products/ERP5Type/tests/testXMLMatrix.py

Modified: erp5/trunk/products/ERP5Type/tests/testXMLMatrix.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/tests/testXMLMatrix.py?rev=32124&r1=32123&r2=32124&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/tests/testXMLMatrix.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/tests/testXMLMatrix.py [utf8] Mon Feb  1 11:42:44 2010
@@ -191,20 +191,11 @@
     get_transaction().commit()
     self.tic()
 
-  def checkSetCellRangeAndCatalog(self, active=1):
+  def test_02_SetCellRangeAndCatalogWithActivities(self):
     """
     Tests if set Cell range do well catalog and uncatalog
     """
     portal = self.portal
-    module = portal.purchase_order_module
-    if not active:
-      self.portal_activities_backup = portal._getOb('portal_activities')
-      portal._delObject('portal_activities')
-      module.recursiveImmediateReindexObject()
-    else:
-      module.recursiveReindexObject()
-      get_transaction().commit()
-      self.tic()
     catalog = portal.portal_catalog
 
     matrix = self.matrix
@@ -318,22 +309,6 @@
     self.assertFalse(catalog.hasPath(cell1_path))
     self.assertFalse(catalog.hasPath(cell2_path))
 
-
-  def test_02_SetCellRangeAndCatalogWithActivities(self):
-    """
-    Tests if set Cell range do well catalog and uncatalog, using activities
-    """
-    self.checkSetCellRangeAndCatalog(active=1)
-
-
-  def test_9999_SetCellRangeAndCatalogWithoutActivities(self):
-    """
-    Tests if set Cell range do well catalog and uncatalog, not using
-    activities.
-    This test removes activity tool, and restores it in teardown.
-    """
-    self.checkSetCellRangeAndCatalog(active=0)
-
   def test_add_dimension(self):
     matrix = self.matrix
 




More information about the Erp5-report mailing list