From 5d6a55b2892fca0762fdb46df95eb326ec198b50 Mon Sep 17 00:00:00 2001 From: Julien Thewys Date: Wed, 7 Apr 2010 15:15:02 +0200 Subject: [PATCH] [FIX] Test section in assert block is not needed anymore. bzr revid: jth@openerp.com-20100407131502-09eag4fx9his454i --- addons/account/demo/price_accuracy00.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/addons/account/demo/price_accuracy00.yml b/addons/account/demo/price_accuracy00.yml index 81023395141..a3cfc154ad9 100644 --- a/addons/account/demo/price_accuracy00.yml +++ b/addons/account/demo/price_accuracy00.yml @@ -44,7 +44,6 @@ Then I should see an account entry linked to this invoice. - !assert {model: account.invoice, id: invoice1}: - test: - bool(move_id) - # This is not working, find a way to do that in YAML, *qty is not @@ -53,14 +52,12 @@ equal to *qty x *price x (1 + *tax) - !assert {model: account.invoice, id: invoice1}: - test: - - abs(sum(x.credit for x in move_id.line_id) - 163.97) < 0.000001 + - abs(sum(x.credit for x in move_id.line_id) - 163.97) < 0.000001 - And this account entry must have a credit equals to the debit - !assert {model: account.invoice, id: invoice1}: - test: - - abs(sum(x.credit - x.debit for x in move_id.line_id)) < 0.000001 + - abs(sum(x.credit - x.debit for x in move_id.line_id)) < 0.000001 - Then, I change the precision of numbers to 3 digits. - @@ -80,8 +77,7 @@ Then this account entry must have a credit equals to the debit - !assert {model: account.invoice, id: invoice2}: - test: - - abs(sum(x.credit - x.debit for x in move_id.line_id)) < 0.000001 + - abs(sum(x.credit - x.debit for x in move_id.line_id)) < 0.000001 - And this account entry must have a credit equals to 163.968€ which is equal to *qty x *price x (1 + *tax)