From 2db5f25f2a316b78ee84121d89d281c41d81c455 Mon Sep 17 00:00:00 2001 From: "atp (Open ERP)" Date: Fri, 23 Apr 2010 18:43:08 +0530 Subject: [PATCH] [IMP]: lunch: replace cashbox name with Employee cashbox in yaml file. bzr revid: atp@tinyerp.co.in-20100423131308-pb14m0jqejoegfs5 --- addons/lunch/test/test_lunch.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/addons/lunch/test/test_lunch.yml b/addons/lunch/test/test_lunch.yml index 668579a6ee2..97ed41b2abc 100644 --- a/addons/lunch/test/test_lunch.yml +++ b/addons/lunch/test/test_lunch.yml @@ -16,11 +16,11 @@ name: Club1 price: 2.75 - | - Given that I have a cashbox "Cashbox" + Given that I have a cashbox "Employee Cashbox" - !record {model: lunch.cashbox, id: lunch_cashbox_cashbox0}: manager: base.user_root - name: CashBox + name: Employee Cashbox - | I create a lunch order "LU001" for the "Club1" product - | @@ -56,7 +56,7 @@ - cashmove.id != False - | - I check that the Total on the cashbox is -2.75 + I check that the Total on the "Employee Cashbox" is -2.75 - !assert {model: lunch.cashbox, id: lunch_cashbox_cashbox0}: @@ -72,7 +72,7 @@ user_id: base.user_root - | - I confirm this order.open wizard and select cashbox. + I confirm this order.open wizard and select "Employee Cashbox". - !record {model: lunch.order.confirm, id: lunch_order_confirm_1}: confirm_cashbox: 'lunch_cashbox_cashbox0' @@ -83,12 +83,12 @@ self.confirm(cr, uid, [ref('lunch_order_confirm_1')], {'active_ids': [ref('lunch_order_1')]}) - | - I check that the Total on the cashbox is -5.50 + I check that the Total on the "Employee Cashbox" is -5.50 - !assert {model: lunch.cashbox, id: lunch_cashbox_cashbox0}: - sum_remain == -5.50 - | - I reset the cashbox to zero using the "Set CashBox to Zero" wizard. + I reset the "Employee Cashbox" to zero using the "Set CashBox to Zero" wizard. - !record {model: lunch.cashbox.clean, id: lunch_cashbox_clean_0}: {} @@ -99,7 +99,7 @@ self.set_to_zero(cr, uid, [ref('lunch_cashbox_clean_0')], {'active_ids': [ref('lunch_cashbox_cashbox0')]}) - | - I check that the Total on the cashbox is 0.0 + I check that the Total on the "Employee Cashbox" is 0.0 - !assert {model: lunch.cashbox, id: lunch_cashbox_cashbox0}: - sum_remain == 0.00 @@ -123,7 +123,7 @@ - cashmove.id == False - | - I check that the Total on the cashbox is -2.75 + I check that the Total on the "Employee Cashbox" is -2.75 - !assert {model: lunch.cashbox, id: lunch_cashbox_cashbox0}: - sum_remain == -2.75