Commit 7be0fdf3 authored by Jérome Perrin's avatar Jérome Perrin

use rule_reference instead of rule_id


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28595 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 91f36124
...@@ -2136,10 +2136,10 @@ class TestSaleInvoiceMixin(TestInvoiceMixin, ...@@ -2136,10 +2136,10 @@ class TestSaleInvoiceMixin(TestInvoiceMixin,
invoice.edit() invoice.edit()
# call updateAppliedRule directly, don't rely on edit interactions # call updateAppliedRule directly, don't rely on edit interactions
rule_id = 'default_invoice_rule' rule_reference = 'default_invoice_rule'
self.failUnless(rule_id in self.assertNotEquals(0,
self.getPortal().portal_rules.objectIds()) len(self.portal.portal_rules.searchFolder(reference=rule_reference)))
invoice.updateAppliedRule(rule_id=rule_id) invoice.updateAppliedRule(rule_reference=rule_reference)
def stepCheckInvoiceRuleNotAppliedOnInvoiceEdit(self, def stepCheckInvoiceRuleNotAppliedOnInvoiceEdit(self,
sequence=None, sequence_list=None, **kw): sequence=None, sequence_list=None, **kw):
...@@ -2159,10 +2159,10 @@ class TestSaleInvoiceMixin(TestInvoiceMixin, ...@@ -2159,10 +2159,10 @@ class TestSaleInvoiceMixin(TestInvoiceMixin,
packing_list.edit() packing_list.edit()
# call updateAppliedRule directly, don't rely on edit interactions # call updateAppliedRule directly, don't rely on edit interactions
rule_id = 'default_delivery_rule' rule_reference = 'default_delivery_rule'
self.failUnless(rule_id in self.assertNotEquals(0,
self.getPortal().portal_rules.objectIds()) len(self.portal.portal_rules.searchFolder(reference=rule_reference)))
packing_list.updateAppliedRule(rule_id=rule_id) packing_list.updateAppliedRule(rule_reference=rule_reference)
def stepCheckDeliveryRuleNotAppliedOnPackingListEdit(self, def stepCheckDeliveryRuleNotAppliedOnPackingListEdit(self,
sequence=None, sequence_list=None, **kw): sequence=None, sequence_list=None, **kw):
......
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