[Erp5-report] r42862 nicolas.dumazet - /erp5/trunk/products/CMFCategory/tests/

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Feb 1 04:23:58 CET 2011


Author: nicolas.dumazet
Date: Tue Feb  1 04:23:58 2011
New Revision: 42862

URL: http://svn.erp5.org?rev=42862&view=rev
Log:
interaction workflow now handles this / no need to tic() for this.

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

Modified:
    erp5/trunk/products/CMFCategory/tests/testCMFCategory.py

Modified: erp5/trunk/products/CMFCategory/tests/testCMFCategory.py
URL: http://svn.erp5.org/erp5/trunk/products/CMFCategory/tests/testCMFCategory.py?rev=42862&r1=42861&r2=42862&view=diff
==============================================================================
--- erp5/trunk/products/CMFCategory/tests/testCMFCategory.py [utf8] (original)
+++ erp5/trunk/products/CMFCategory/tests/testCMFCategory.py [utf8] Tue Feb  1 04:23:58 2011
@@ -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)



More information about the Erp5-report mailing list