From a9c3dbcd3d1cea38e62737deb8c85bd5e347a334 Mon Sep 17 00:00:00 2001 From: "RME (OpenERP)" Date: Thu, 16 Sep 2010 11:18:00 +0530 Subject: [PATCH] [IMP] acution : yml report test added bzr revid: rme@tinyerp.com-20100916054800-jgtvkzc560qiu3eu --- addons/auction/test/auction_report.yml | 33 ++++++++++---------------- 1 file changed, 13 insertions(+), 20 deletions(-) diff --git a/addons/auction/test/auction_report.yml b/addons/auction/test/auction_report.yml index 4adbbae5fe9..4d5110c03a1 100644 --- a/addons/auction/test/auction_report.yml +++ b/addons/auction/test/auction_report.yml @@ -1,5 +1,5 @@ - - In order to test the PDF reports defined on auction, we will print a Action Artist + In order to test the PDF reports defined on auction, we will print a auction artist - !python {model: auction.lots}: | import netsvc, tools, os @@ -8,27 +8,20 @@ file(os.path.join(tools.config['test_report_directory'], 'action_artist_report.'+format), 'wb+').write(data) - - In order to test the PDF reports defined on auction, we will print a Action Bid + In order to test the PDF reports defined on auction, we will print a auction Bid - !python {model: auction.bid}: | import netsvc, tools, os (data, format) = netsvc.LocalService('report.auction.bids').create(cr, uid, [ref('auction.auction_date_1_bid_3'),ref('auction.auction_date_1_bid_4')], {}, {}) if tools.config['test_report_directory']: file(os.path.join(tools.config['test_report_directory'], 'action_bid_report.'+format), 'wb+').write(data) -- - In order to test the PDF reports defined on auction, we will print a Seller Form Report -- - !python {model: auction.lots}: | - import netsvc, tools, os - (data, format) = netsvc.LocalService('report.seller_form_report').create(cr, uid, [ref('auction.auction_date_1_bid_3'),ref('auction.auction_date_1_bid_4')], {}, {}) - if tools.config['test_report_directory']: - file(os.path.join(tools.config['test_report_directory'], 'seller_form_report.'+format), 'wb+').write(data) + - In order to test the PDF reports defined on auction, we will print a lots list Report - !python {model: auction.lots}: | import netsvc, tools, os - (data, format) = netsvc.LocalService('report.lots.list').create(cr, uid, [ref('auction.auction_date_1_bid_3'),ref('auction.auction_date_1_bid_4')], {}, {}) + (data, format) = netsvc.LocalService('report.lots.list').create(cr, uid, [ref('auction.auction_deposit_3_lot_1'),ref('auction.auction_deposit_3_lot_2')], {}, {}) if tools.config['test_report_directory']: file(os.path.join(tools.config['test_report_directory'], 'lots_list_report.'+format), 'wb+').write(data) - @@ -36,7 +29,7 @@ - !python {model: auction.lots}: | import netsvc, tools, os - (data, format) = netsvc.LocalService('report.lots.list.inventory').create(cr, uid, [ref('auction.auction_date_1_bid_3'),ref('auction.auction_date_1_bid_4')], {}, {}) + (data, format) = netsvc.LocalService('report.lots.list.inventory').create(cr, uid, [ref('auction.auction_deposit_4_lot_1'),ref('auction.auction_deposit_4_lot_2')], {}, {}) if tools.config['test_report_directory']: file(os.path.join(tools.config['test_report_directory'], 'lots_inventory_report.'+format), 'wb+').write(data) - @@ -44,7 +37,7 @@ - !python {model: auction.lots}: | import netsvc, tools, os - (data, format) = netsvc.LocalService('report.deposit.seller').create(cr, uid, [ref('auction.auction_date_1_bid_3'),ref('auction.auction_date_1_bid_4')], {}, {}) + (data, format) = netsvc.LocalService('report.deposit.seller').create(cr, uid, [ref('auction.auction_deposit_5_lot_1'),ref('auction.auction_deposit_5_lot_2')], {}, {}) if tools.config['test_report_directory']: file(os.path.join(tools.config['test_report_directory'], 'deposit_seller_report.'+format), 'wb+').write(data) - @@ -52,7 +45,7 @@ - !python {model: auction.dates}: | import netsvc, tools, os - (data, format) = netsvc.LocalService('report.auction.cat_flagy').create(cr, uid, [ref('auction.auction_date_2')], {}, {}) + (data, format) = netsvc.LocalService('report.auction.cat_flagy').create(cr, uid, [ref('auction.auction_date_1'),ref('auction.auction_date_2')], {}, {}) if tools.config['test_report_directory']: file(os.path.join(tools.config['test_report_directory'], 'auction-catalog_list.'+format), 'wb+').write(data) - @@ -60,7 +53,7 @@ - !python {model: auction.lots}: | import netsvc, tools, os - (data, format) = netsvc.LocalService('report.buyer_form_report').create(cr, uid, [ref('auction.auction_date_2')], {}, {}) + (data, format) = netsvc.LocalService('report.buyer_form_report').create(cr, uid, [ref('auction.auction_deposit_6_lot_1'),ref('auction.auction_deposit_6_lot_2')], {}, {}) if tools.config['test_report_directory']: file(os.path.join(tools.config['test_report_directory'], 'auction-buyer_form.'+format), 'wb+').write(data) - @@ -68,7 +61,7 @@ - !python {model: auction.lots}: | import netsvc, tools, os - (data, format) = netsvc.LocalService('report.bids.phones.details').create(cr, uid, [ref('auction.auction_date_2')], {}, {}) + (data, format) = netsvc.LocalService('report.bids.phones.details').create(cr, uid, [ref('auction.auction_deposit_7_lot_1'),ref('auction.auction_deposit_7_lot_2')], {}, {}) if tools.config['test_report_directory']: file(os.path.join(tools.config['test_report_directory'], 'auction-bids_phones_details.'+format), 'wb+').write(data) - @@ -76,7 +69,7 @@ - !python {model: auction.lots}: | import netsvc, tools, os - (data, format) = netsvc.LocalService('report.auction.total.rml').create(cr, uid, [ref('auction.auction_deposit_2_lot_1'),ref('auction.auction_deposit_2_lot_2')], {}, {}) + (data, format) = netsvc.LocalService('report.auction.total.rml').create(cr, uid, [ref('auction.auction_deposit_8_lot_1'),ref('auction.auction_deposit_8_lot_2')], {}, {}) if tools.config['test_report_directory']: file(os.path.join(tools.config['test_report_directory'], 'action_total_report.'+format), 'wb+').write(data) @@ -85,7 +78,7 @@ - !python {model: auction.lots}: | import netsvc, tools, os - (data, format) = netsvc.LocalService('report.auction.result').create(cr, uid, [ref('auction.auction_deposit_3_lot_1'),ref('auction.auction_deposit_3_lot_2')], {}, {}) + (data, format) = netsvc.LocalService('report.auction.result').create(cr, uid, [ref('auction.auction_deposit_9_lot_1'),ref('auction.auction_deposit_9_lot_2')], {}, {}) if tools.config['test_report_directory']: file(os.path.join(tools.config['test_report_directory'], 'action_result_report.'+format), 'wb+').write(data) @@ -94,6 +87,6 @@ - !python {model: auction.lots}: | import netsvc, tools, os - (data, format) = netsvc.LocalService('report.bids.lots').create(cr, uid, [ref('auction.auction_deposit_4_lot_1'),ref('auction.auction_deposit_4_lot_2')], {}, {}) + (data, format) = netsvc.LocalService('report.bids.lots').create(cr, uid, [ref('auction.auction_deposit_10_lot_1'),ref('auction.auction_deposit_10_lot_2')], {}, {}) if tools.config['test_report_directory']: - file(os.path.join(tools.config['test_report_directory'], 'action_lot_report.'+format), 'wb+').write(data) \ No newline at end of file + file(os.path.join(tools.config['test_report_directory'], 'action_lot_report.'+format), 'wb+').write(data) \ No newline at end of file