[Erp5-report] r37762 luke - /erp5/trunk/products/ERP5/tests/testPackingList.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Aug 12 15:17:02 CEST 2010


Author: luke
Date: Thu Aug 12 15:17:00 2010
New Revision: 37762

URL: http://svn.erp5.org?rev=37762&view=rev
Log:
 - test subcontent reindexing for Container as parent document

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

Modified: erp5/trunk/products/ERP5/tests/testPackingList.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testPackingList.py?rev=37762&r1=37761&r2=37762&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testPackingList.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testPackingList.py [utf8] Thu Aug 12 15:17:00 2010
@@ -1747,6 +1747,21 @@ class TestPackingList(TestPackingListMix
     self.assertEquals(int_index_result, [line_ccc, line_ddd, line_aaa,
       line_bbb])
 
+  def test_subcontent_reindexing_container_line_cell(self):
+    """Tests, that indexation of Packing List are propagated to subobjects
+    during reindxation, for Container, Container Line and Container Cell"""
+    packing_list = self.portal.getDefaultModule(
+        self.packing_list_portal_type).newContent(
+            portal_type=self.packing_list_portal_type)
+    container = packing_list.newContent(
+        portal_type=self.container_portal_type)
+    container_line = container.newContent(
+        portal_type=self.container_line_portal_type)
+    container_cell = container_line.newContent(
+        portal_type=self.container_cell_portal_type)
+    self._testSubContentReindexing(container, [container_line,
+      container_cell])
+
 class TestSolvingPackingList(TestPackingListMixin, ERP5TypeTestCase):
   quiet = 0
 
@@ -1928,10 +1943,15 @@ class TestPurchasePackingListMixin(TestP
   stepCheckPackingListIsNotPacked = ignored_step
   stepCheckPackingListIsPacked = ignored_step
   stepCheckNewPackingListIsPacked = ignored_step
+
   def test_subcontent_reindexing_packing_list_container_line_cell(self):
     """No need to check Containers in Purchase Packing List"""
     pass
 
+  def test_subcontent_reindexing_container_line_cell(self):
+    """No need to check Containers in Purchase Packing List"""
+    pass
+
 class TestPurchasePackingList(TestPurchasePackingListMixin, TestPackingList):
   """Tests for purchase packing list.
   """




More information about the Erp5-report mailing list