[IMP] Purchase YAML tests rewritten using new view: feature
authorFabien Pinckaers <fp@tinyerp.com>
Sun, 13 Nov 2011 23:01:58 +0000 (00:01 +0100)
committerFabien Pinckaers <fp@tinyerp.com>
Sun, 13 Nov 2011 23:01:58 +0000 (00:01 +0100)
bzr revid: fp@tinyerp.com-20111113230158-4r36c2sdg23uuuyo

addons/purchase/test/process/cancel_order.yml
addons/purchase/test/process/run_scheduler.yml
addons/purchase/test/ui/delete_order.yml

index 2aa0412..4ac8e09 100644 (file)
@@ -52,8 +52,3 @@
 -
   !assert {model: purchase.order, id: order_purchase4}:
     - state == 'cancel'
--
-  Now again set cancelled order to draft.
--
-  !python {model: purchase.order}: |
-    self.action_cancel_draft(cr, uid, [ref("order_purchase4")])
index 098ef04..c5e7e7f 100644 (file)
@@ -3,15 +3,12 @@
 -
   I create a procurement order.
 -
-  !record {model: procurement.order, id: procurement_order_testcase0}:
-    company_id: base.main_company
-    date_planned: !eval time.strftime('%Y-%m-%d %H:%M:%S')
+  !record {model: procurement.order, id: procurement_order_testcase0, view: False}:
     location_id: stock.stock_location_stock
     name: Test scheduler for RFQ
     procure_method: make_to_order
     product_id: product.product_product_woodlintelm0
     product_qty: 15.0
-    product_uom: product.product_uom_unit
 -
   I confirm on procurement order.
 -
@@ -27,4 +24,3 @@
   !python {model: procurement.order}: |
     procurement = self.browse(cr, uid, ref('procurement_order_testcase0'))
     assert procurement.purchase_id, 'RFQ should be generated!'
-
index e3078c2..4b0afe0 100644 (file)
@@ -9,7 +9,7 @@
     except Exception,e:
         pass
 -
-  I delete draft order.
+  I delete a draft order.
 -
   !python {model: purchase.order}: |
     self.unlink(cr, uid, [ref("order_purchase5")])