From 27ace52ea09eb914239c7d551e8cda4588239ba8 Mon Sep 17 00:00:00 2001 From: "DBR (OpenERP)" Date: Thu, 13 Oct 2011 15:40:15 +0530 Subject: [PATCH] [MOVE,IMP]purchase: Move requests_quotation.yml to rfq2purchase_order.yml and improve the code bzr revid: dbr@tinyerp.com-20111013101015-pyj0bhi7f3u5rj7b --- .../{requests_quotation.yml => rfq2purchase_order.yml} | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) rename addons/purchase/test/process/{requests_quotation.yml => rfq2purchase_order.yml} (73%) diff --git a/addons/purchase/test/process/requests_quotation.yml b/addons/purchase/test/process/rfq2purchase_order.yml similarity index 73% rename from addons/purchase/test/process/requests_quotation.yml rename to addons/purchase/test/process/rfq2purchase_order.yml index 972c11a0070..dba59cac3df 100644 --- a/addons/purchase/test/process/requests_quotation.yml +++ b/addons/purchase/test/process/rfq2purchase_order.yml @@ -1,10 +1,5 @@ - - In order to test the purchase flow, I start it from request for quotation. -- - I test the purchase order where supplier 'ASUStek', - price list is 'Default Purchase Pricelist (EUR)'. -- - I compute the total of the ordered products. + In order to test the purchase flow, I compute the total of the ordered products. "Basic PC" product price is 450.20 and ordered 2 'PCE' "New server config + material" product price is 150.50 and ordered 5 'PCE' - @@ -14,7 +9,7 @@ I check the total of the ordered products. Total should be [(450.20*2)+(150.50*5)] = 1652.90 - - !assert {model: purchase.order, id: order_purchase1, string: The amount of total should be 1650}: + !assert {model: purchase.order, id: order_purchase1, string: The amount of total should be 1652.90}: - amount_total == 1652.90 - I confirm the purchase order.