[Erp5-report] r43201 nicolas.dumazet - /erp5/trunk/products/ERP5/tests/testERP5Simulation.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Feb 9 05:08:11 CET 2011


Author: nicolas.dumazet
Date: Wed Feb  9 05:08:11 2011
New Revision: 43201

URL: http://svn.erp5.org?rev=43201&view=rev
Log:
test that portal_simulation is indexed.

Without this "simple" test/knowledge, debugging broken Simulation Tests can prove
tricky.

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

Modified: erp5/trunk/products/ERP5/tests/testERP5Simulation.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testERP5Simulation.py?rev=43201&r1=43200&r2=43201&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testERP5Simulation.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testERP5Simulation.py [utf8] Wed Feb  9 05:08:11 2011
@@ -161,6 +161,18 @@ class TestERP5Simulation(TestPackingList
     """
     self._checkSolverState(sequence, sequence_list, 'solved')
 
+  def test_00_simulationToolIsIndexed(self):
+    """
+    Parts of simulation (only legacy & "legacy legacy" simulation?)
+    expect the simulation tool to be indexed in SQL queries, notably
+    thanks to grand_parent related keys on Simulation Movements
+    """
+    portal_catalog = self.portal.portal_catalog
+
+    portal_simulation_path = self.portal.portal_simulation.getPath()
+    self.assertEquals(1,
+        len(portal_catalog(path=portal_simulation_path)))
+
   def test_01_splitAndDefer(self, quiet=quiet, run=run_all_test):
     """
       Change the quantity on an delivery line, then



More information about the Erp5-report mailing list