[IMP] Purchase YAML tests rewritten using new view: feature

bzr revid: fp@tinyerp.com-20111113230158-4r36c2sdg23uuuyo
This commit is contained in:
Fabien Pinckaers 2011-11-14 00:01:58 +01:00
parent 50ed8b5021
commit bae50f2557
3 changed files with 2 additions and 11 deletions

View 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")])

View 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!'

View 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")])