Commit 8ec06c9b authored by Jérome Perrin's avatar Jérome Perrin

Since price_category is now acquired on the supply line, then supplies

from this test have the same number of categories. The number of
categories is used in Resource._pricingSortMethod to assign priorities
on available supplies, so the priority is random.

set price_currency on all supplies restore the difference in category
count.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7564 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 24622491
......@@ -73,7 +73,7 @@ class TestResource(ERP5TypeTestCase):
Install needed business template
"""
# Trade is needeed for pricing
return ('erp5_base','erp5_pdm','erp5_trade','erp5_apparel')
return ('erp5_base', 'erp5_pdm', 'erp5_trade', 'erp5_apparel', )
def getTitle(self):
return "Resource"
......@@ -706,6 +706,7 @@ class TestResource(ERP5TypeTestCase):
supply = supply_module.newContent(
portal_type=self.supply_portal_type,
title='FakeSupply%s' % i,
price_currency_value=currency,
destination_value=node)
self.logMessage("Creating fake supply line %s..." % i, tab=1)
supply_line = supply.newContent(
......
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