Commit 16d3545f authored by Jérome Perrin's avatar Jérome Perrin

remove test of matrix without activities. ERP5 is not really supposed to work

without portal_activities


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32124 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7babbfd0
......@@ -191,20 +191,11 @@ class TestXMLMatrix(ERP5TypeTestCase, LogInterceptor):
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 @@ class TestXMLMatrix(ERP5TypeTestCase, LogInterceptor):
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
......
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