Commit 35be87ce authored by Julien Muchembled's avatar Julien Muchembled

Fix testLegacySimulationPerformance

Even if not required for the test, the change to
test_advanced_sale_invoice_trade_model_builder preferable.
parent cfb789d2
...@@ -104,10 +104,6 @@ ...@@ -104,10 +104,6 @@
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>test_bp</string> </value> <value> <string>test_bp</string> </value>
</item> </item>
<item>
<key> <string>last_id</string> </key>
<value> <string>9</string> </value>
</item>
<item> <item>
<key> <string>portal_type</string> </key> <key> <string>portal_type</string> </key>
<value> <string>Business Process</string> </value> <value> <string>Business Process</string> </value>
......
...@@ -101,10 +101,6 @@ ...@@ -101,10 +101,6 @@
<key> <string>int_index</string> </key> <key> <string>int_index</string> </key>
<value> <int>1</int> </value> <value> <int>1</int> </value>
</item> </item>
<item>
<key> <string>last_id</string> </key>
<value> <string>2</string> </value>
</item>
<item> <item>
<key> <string>portal_type</string> </key> <key> <string>portal_type</string> </key>
<value> <string>Category</string> </value> <value> <string>Category</string> </value>
......
...@@ -93,10 +93,6 @@ ...@@ -93,10 +93,6 @@
<key> <string>int_index</string> </key> <key> <string>int_index</string> </key>
<value> <int>1</int> </value> <value> <int>1</int> </value>
</item> </item>
<item>
<key> <string>last_id</string> </key>
<value> <string>1</string> </value>
</item>
<item> <item>
<key> <string>portal_type</string> </key> <key> <string>portal_type</string> </key>
<value> <string>Category</string> </value> <value> <string>Category</string> </value>
......
...@@ -73,10 +73,6 @@ ...@@ -73,10 +73,6 @@
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>test_advanced_sale_invoice_builder</string> </value> <value> <string>test_advanced_sale_invoice_builder</string> </value>
</item> </item>
<item>
<key> <string>last_id</string> </key>
<value> <string>1</string> </value>
</item>
<item> <item>
<key> <string>portal_type</string> </key> <key> <string>portal_type</string> </key>
<value> <string>Delivery Builder</string> </value> <value> <string>Delivery Builder</string> </value>
......
...@@ -44,8 +44,7 @@ ...@@ -44,8 +44,7 @@
<key> <string>delivery_cell_separate_order</string> </key> <key> <string>delivery_cell_separate_order</string> </key>
<value> <value>
<tuple> <tuple>
<string>calculateAveragePrice</string> <string>calculateSeparatePrice</string>
<string>calculateAddQuantity</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -75,10 +74,6 @@ ...@@ -75,10 +74,6 @@
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>test_advanced_sale_invoice_trade_model_builder</string> </value> <value> <string>test_advanced_sale_invoice_trade_model_builder</string> </value>
</item> </item>
<item>
<key> <string>last_id</string> </key>
<value> <string>2</string> </value>
</item>
<item> <item>
<key> <string>portal_type</string> </key> <key> <string>portal_type</string> </key>
<value> <string>Delivery Builder</string> </value> <value> <string>Delivery Builder</string> </value>
......
...@@ -73,10 +73,6 @@ ...@@ -73,10 +73,6 @@
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>test_sale_packing_list_builder</string> </value> <value> <string>test_sale_packing_list_builder</string> </value>
</item> </item>
<item>
<key> <string>last_id</string> </key>
<value> <string>1</string> </value>
</item>
<item> <item>
<key> <string>portal_type</string> </key> <key> <string>portal_type</string> </key>
<value> <string>Delivery Builder</string> </value> <value> <string>Delivery Builder</string> </value>
......
...@@ -153,10 +153,6 @@ ...@@ -153,10 +153,6 @@
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>test_trade_model_rule</string> </value> <value> <string>test_trade_model_rule</string> </value>
</item> </item>
<item>
<key> <string>last_id</string> </key>
<value> <string>3</string> </value>
</item>
<item> <item>
<key> <string>matching_property</string> </key> <key> <string>matching_property</string> </key>
<value> <value>
......
...@@ -123,10 +123,6 @@ ...@@ -123,10 +123,6 @@
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>test_stc</string> </value> <value> <string>test_stc</string> </value>
</item> </item>
<item>
<key> <string>last_id</string> </key>
<value> <string>2</string> </value>
</item>
<item> <item>
<key> <string>portal_type</string> </key> <key> <string>portal_type</string> </key>
<value> <string>Sale Trade Condition</string> </value> <value> <string>Sale Trade Condition</string> </value>
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
</item> </item>
<item> <item>
<key> <string>business_template_skin_layer_priority</string> </key> <key> <string>business_template_skin_layer_priority</string> </key>
<value> <float>10.0</float> </value> <value> <float>40.0</float> </value>
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
......
22 23
\ No newline at end of file \ No newline at end of file
...@@ -121,13 +121,10 @@ class TestSimulationPerformance(ERP5TypeTestCase, LogInterceptor): ...@@ -121,13 +121,10 @@ class TestSimulationPerformance(ERP5TypeTestCase, LogInterceptor):
""" """
Return the list of business templates. Return the list of business templates.
""" """
return ('erp5_base', return ('erp5_core_proxy_field_legacy', 'erp5_base',
'erp5_pdm', 'erp5_pdm', 'erp5_simulation', 'erp5_trade',
'erp5_trade', 'erp5_accounting', 'erp5_invoicing', 'erp5_advanced_invoicing',
'erp5_invoicing', 'erp5_simulation_test', 'erp5_simulation_performance_test')
'erp5_accounting',
'erp5_advanced_invoicing',
'erp5_simulation_performance_test',)
def afterSetUp(self): def afterSetUp(self):
""" """
...@@ -794,6 +791,9 @@ class TestSimulationPerformance(ERP5TypeTestCase, LogInterceptor): ...@@ -794,6 +791,9 @@ class TestSimulationPerformance(ERP5TypeTestCase, LogInterceptor):
number_of_additional_sale_packing_list_lines=5, number_of_additional_sale_packing_list_lines=5,
measurable=True) measurable=True)
from Products.ERP5Legacy.tests import Legacy_getBusinessTemplateList
Legacy_getBusinessTemplateList(TestSimulationPerformance)
def test_suite(): def test_suite():
suite = unittest.TestSuite() suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(TestSimulationPerformance)) suite.addTest(unittest.makeSuite(TestSimulationPerformance))
......
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