Commit 8b133845 authored by Łukasz Nowak's avatar Łukasz Nowak

Extend test for Sale Invoice Transactions.

parent 50b066a7
......@@ -212,11 +212,7 @@ portal_workflow.doActionFor(context, action='edit_action', comment='Visited by D
self.portal.portal_skins.custom.manage_delObjects(script_name)
transaction.commit()
def test_SalePackingList_calculate(self):
new_id = self.generateNewId()
newContent = self.portal.sale_packing_list_module.newContent
portal_type = "Sale Packing List"
def _test_calculate(self, new_id, newContent, portal_type):
cancel_spl = newContent(portal_type=portal_type)
close_spl = newContent(portal_type=portal_type)
confirm_spl = newContent(portal_type=portal_type)
......@@ -278,6 +274,18 @@ portal_workflow.doActionFor(context, action='edit_action', comment='Visited by D
submit_spl.workflow_history['edit_workflow'][-1]['comment'],
'Visited by Delivery_calculate')
def test_SalePackingList_calculate(self):
new_id = self.generateNewId()
newContent = self.portal.sale_packing_list_module.newContent
portal_type = "Sale Packing List"
self._test_calculate(new_id, newContent, portal_type)
def test_SaleInvoiceTransaction_calculate(self):
new_id = self.generateNewId()
newContent = self.portal.accounting_module.newContent
portal_type = "Sale Invoice Transaction"
self._test_calculate(new_id, newContent, portal_type)
def test_HostingSubscription_changePromise(self):
new_id = self.generateNewId()
subscription = self.portal.hosting_subscription_module.newContent(
......
85
\ No newline at end of file
86
\ No newline at end of file
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