Commit 50993237 authored by Sebastien Robin's avatar Sebastien Robin

specify the portal type of the line

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13617 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 153077d9
......@@ -157,6 +157,7 @@ class TestERP5BankingTravelerCheckPurchase(TestERP5BankingCheckbookUsualCashTran
# Add a line for check
self.line_1 = self.traveler_check_purchase.newContent(quantity=1,
portal_type='Checkbook Delivery Line',
resource_value=self.traveler_check_model,
check_type_value=self.traveler_check_model.variant_1,
reference_range_min="abcd123456",
......@@ -184,6 +185,7 @@ class TestERP5BankingTravelerCheckPurchase(TestERP5BankingCheckbookUsualCashTran
workflow_history = self.workflow_tool.getInfoFor(ob=self.traveler_check_purchase,
name='history', wf_id='traveler_check_purchase_workflow')
self.assertEqual(len(workflow_history), 3)
self.assertEqual(self.traveler_check_purchase.movement.getQuantity(), 32500)
def stepCheckFinalCheckbookInventory(self, 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