mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
refactor tests, improve failures
This commit is contained in:
@@ -60,8 +60,8 @@
|
||||
-
|
||||
I confirm the reservation
|
||||
-
|
||||
!python {model: stock.reservation}: |
|
||||
self.reserve(cr, uid, [ref('reserv_sorbet2')], context=context)
|
||||
!python {model: stock.reservation, id: reserv_sorbet2}: |
|
||||
self.reserve()
|
||||
-
|
||||
I check the reserved amount of the product and the template
|
||||
-
|
||||
@@ -80,9 +80,9 @@
|
||||
-
|
||||
I check Virtual stock of Sorbet after update reservation
|
||||
-
|
||||
!python {model: product.product}: |
|
||||
product = self.browse(cr, uid, ref('stock_reserve.product_sorbet'), context=context)
|
||||
assert product.virtual_available == 3.5, "Stock is not updated."
|
||||
!python {model: product.product, id: product_sorbet}: |
|
||||
from nose.tools import *
|
||||
assert_almost_equal(3.5, self.virtual_available)
|
||||
-
|
||||
I run the scheduler
|
||||
-
|
||||
|
||||
Reference in New Issue
Block a user