Commit a6dd63ac authored by Julien Muchembled's avatar Julien Muchembled

Add a warning about testItem when it is run with --portal_id

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28801 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e89ed895
...@@ -30,6 +30,7 @@ import unittest ...@@ -30,6 +30,7 @@ import unittest
import transaction import transaction
from DateTime import DateTime from DateTime import DateTime
from Testing import ZopeTestCase
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5Type.tests.utils import reindex from Products.ERP5Type.tests.utils import reindex
from AccessControl.SecurityManagement import newSecurityManager from AccessControl.SecurityManagement import newSecurityManager
...@@ -753,6 +754,8 @@ class TestItemScripts(ERP5TypeTestCase): ...@@ -753,6 +754,8 @@ class TestItemScripts(ERP5TypeTestCase):
return cell return cell
def test_Item_getVariationCategoryList(self): 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.assertEquals([], self.item.Item_getVariationCategoryList())
self._makeSalePackingListCellWithVariation() self._makeSalePackingListCellWithVariation()
self.assertEquals(['size/small'], self.item.Item_getVariationCategoryList()) self.assertEquals(['size/small'], self.item.Item_getVariationCategoryList())
...@@ -760,6 +763,8 @@ class TestItemScripts(ERP5TypeTestCase): ...@@ -760,6 +763,8 @@ class TestItemScripts(ERP5TypeTestCase):
self.item.Item_getVariationCategoryList(at_date=DateTime() - 2)) self.item.Item_getVariationCategoryList(at_date=DateTime() - 2))
def test_Item_getVariationRangeCategoryItemList(self): 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.assertEquals([], self.item.Item_getVariationRangeCategoryItemList())
self._makeSalePackingListCellWithVariation() self._makeSalePackingListCellWithVariation()
self.assertEquals([['Big', 'size/big'], self.assertEquals([['Big', 'size/big'],
......
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