[IMP] auction: added yml for report test
authorAnup (OpenERP) <ach@tinyerp.com>
Wed, 15 Sep 2010 14:25:39 +0000 (19:55 +0530)
committerAnup (OpenERP) <ach@tinyerp.com>
Wed, 15 Sep 2010 14:25:39 +0000 (19:55 +0530)
bzr revid: ach@tinyerp.com-20100915142539-0ypa4adhrkpi91dz

addons/account/test/account_report.yml
addons/auction/test/auction_report.yml

index ae7424d..a883af0 100644 (file)
@@ -2,7 +2,6 @@
   In order to test the PDF reports defined on an invoice, we will print an invoice
 - 
   !python {model: account.invoice}: |
-    print "aavoyuygugvyuvyug   "
     import netsvc, tools, os
     (data, format) = netsvc.LocalService('report.account.invoice').create(cr, uid, [ref('account.test_invoice_1')], {}, {})
     if tools.config['test_report_directory']:
index 6b4a4fe..4adbbae 100644 (file)
@@ -1,5 +1,5 @@
 -
-  In order to test the PDF reports defined on a Action Artist, we will print a Action Artist
+  In order to test the PDF reports defined on auction, we will print a Action Artist
 - 
   !python {model: auction.lots}: |
     import netsvc, tools, os
@@ -8,10 +8,92 @@
         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 a Action Bid, we will print a Action Bid
+  In order to test the PDF reports defined on auction, we will print a Action Bid
 - 
-  !python {model: auction.lots}: |
+  !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)
\ No newline at end of file
+        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')], {}, {})
+    if tools.config['test_report_directory']:
+        file(os.path.join(tools.config['test_report_directory'], 'lots_list_report.'+format), 'wb+').write(data)
+-
+  In order to test the PDF reports defined on auction, we will print a lots inventory Report
+- 
+  !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')], {}, {})
+    if tools.config['test_report_directory']:
+        file(os.path.join(tools.config['test_report_directory'], 'lots_inventory_report.'+format), 'wb+').write(data)
+-
+  In order to test the PDF reports defined on auction, we will print a deposit seller Report
+- 
+  !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')], {}, {})
+    if tools.config['test_report_directory']:
+        file(os.path.join(tools.config['test_report_directory'], 'deposit_seller_report.'+format), 'wb+').write(data)
+-
+  In order to test the PDF reports defined on auction, we will print a catalog
+-
+  !python {model: auction.dates}: |
+    import netsvc, tools, os
+    (data, format) = netsvc.LocalService('report.auction.cat_flagy').create(cr, uid, [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)
+-
+  In order to test the PDF reports defined on auction, we will print buyer form report
+-
+  !python {model: auction.lots}: |
+    import netsvc, tools, os
+    (data, format) = netsvc.LocalService('report.buyer_form_report').create(cr, uid, [ref('auction.auction_date_2')], {}, {})
+    if tools.config['test_report_directory']:
+        file(os.path.join(tools.config['test_report_directory'], 'auction-buyer_form.'+format), 'wb+').write(data)
+-
+  In order to test the PDF reports defined on auction, we will print bids phones report
+-
+  !python {model: auction.lots}: |
+    import netsvc, tools, os
+    (data, format) = netsvc.LocalService('report.bids.phones.details').create(cr, uid, [ref('auction.auction_date_2')], {}, {})
+    if tools.config['test_report_directory']:
+        file(os.path.join(tools.config['test_report_directory'], 'auction-bids_phones_details.'+format), 'wb+').write(data)
+-
+  In order to test the PDF reports defined on a auction, we will print a Auction Total
+- 
+  !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')], {}, {})
+    if tools.config['test_report_directory']:
+        file(os.path.join(tools.config['test_report_directory'], 'action_total_report.'+format), 'wb+').write(data)
+
+-
+  In order to test the PDF reports defined on a auction, we will print a Auction Result
+- 
+  !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')], {}, {})
+    if tools.config['test_report_directory']:
+        file(os.path.join(tools.config['test_report_directory'], 'action_result_report.'+format), 'wb+').write(data)
+
+-
+  In order to test the PDF reports defined on a auction, we will print a Auction Lot
+- 
+  !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')], {}, {})
+    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