From d575c9877fa1f6d7a9a0ba603ab2d5f9ee73ac88 Mon Sep 17 00:00:00 2001
From: Nicolas Dumazet <nicolas.dumazet@nexedi.com>
Date: Tue, 1 Feb 2011 03:23:58 +0000
Subject: [PATCH] interaction workflow now handles this / no need to tic() for
 this.

(I'm implementing my own TODOs; I know, nice, right?)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42862 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/CMFCategory/tests/testCMFCategory.py | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/product/CMFCategory/tests/testCMFCategory.py b/product/CMFCategory/tests/testCMFCategory.py
index 06fced79cf..3e60028ce2 100644
--- a/product/CMFCategory/tests/testCMFCategory.py
+++ b/product/CMFCategory/tests/testCMFCategory.py
@@ -975,17 +975,8 @@ class TestCMFCategory(ERP5TypeTestCase):
   def test_31_assert_raise_if_base_category_is_missing(self):
     #First remove Base Category
     self.portal.portal_categories.manage_delObjects(['region'])
-    get_transaction().commit()
-    self.tic()
-    # XXX should be done in an Interaction Workflow,
-    # with the guarantee that it's only ever called once per transaction,
-    # that is, if several categories get changed in the same transaction,
-    # call it only ONCE (that is not the case with the current
-    # 'once per transaction', which is actually 'once per transaction per object'
-    self.portal.portal_types.resetDynamicDocuments()
     obj = self.portal.person_module.newContent(portal_type='Person')
     get_transaction().commit()
-    self.tic()
     try:
       #Setters
       self.assertRaises(AttributeError, getattr, obj, 'setRegion')
@@ -1002,7 +993,6 @@ class TestCMFCategory(ERP5TypeTestCase):
       #add Base Category
       self.portal.portal_categories.newContent(id='region', portal_type='Base Category')
     get_transaction().commit()
-    self.tic()
     #check Method exists after base_category creation
     #Setters
     self.assertTrue(getattr(obj, 'setRegion') is not None)
-- 
2.30.9