[Erp5-report] r28801 - /erp5/trunk/products/ERP5/tests/testItem.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Sep 3 19:10:26 CEST 2009


Author: jm
Date: Thu Sep  3 19:10:25 2009
New Revision: 28801

URL: http://svn.erp5.org?rev=28801&view=rev
Log:
Add a warning about testItem when it is run with --portal_id

Modified:
    erp5/trunk/products/ERP5/tests/testItem.py

Modified: erp5/trunk/products/ERP5/tests/testItem.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testItem.py?rev=28801&r1=28800&r2=28801&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testItem.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testItem.py [utf8] Thu Sep  3 19:10:25 2009
@@ -30,6 +30,7 @@
 
 import transaction
 from DateTime import DateTime
+from Testing import ZopeTestCase
 from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
 from Products.ERP5Type.tests.utils import reindex
 from AccessControl.SecurityManagement import newSecurityManager
@@ -753,6 +754,8 @@
     return cell
 
   def test_Item_getVariationCategoryList(self):
+    ZopeTestCase._print("\nWARNING test_Item_getVariationCategoryList"
+      " fails when it is executed after TestItem, and with the same portal_id")
     self.assertEquals([], self.item.Item_getVariationCategoryList())
     self._makeSalePackingListCellWithVariation()
     self.assertEquals(['size/small'], self.item.Item_getVariationCategoryList())
@@ -760,6 +763,8 @@
         self.item.Item_getVariationCategoryList(at_date=DateTime() - 2))
 
   def test_Item_getVariationRangeCategoryItemList(self):
+    ZopeTestCase._print("\nWARNING test_Item_getVariationRangeCategoryItemList"
+      " fails when it is executed after TestItem, and with the same portal_id")
     self.assertEquals([], self.item.Item_getVariationRangeCategoryItemList())
     self._makeSalePackingListCellWithVariation()
     self.assertEquals([['Big', 'size/big'],




More information about the Erp5-report mailing list