Commit 0a36498a authored by Nicolas Dumazet's avatar Nicolas Dumazet

test that portal_simulation is indexed.

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


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43201 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8f3e57a0
......@@ -161,6 +161,18 @@ class TestERP5Simulation(TestPackingListMixin, ERP5TypeTestCase):
"""
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
......
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