mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
improve float assertions
This commit is contained in:
@@ -46,9 +46,9 @@
|
||||
-
|
||||
I check Virtual stock of Gelato after update reservation
|
||||
-
|
||||
!python {model: product.product}: |
|
||||
product = self.browse(cr, uid, ref('product_gelato'), context=context)
|
||||
assert product.virtual_available == 6, "Stock is not updated."
|
||||
!python {model: product.product, id: product_gelato}: |
|
||||
from nose.tools import *
|
||||
assert_almost_equal(self.virtual_available, 6.0)
|
||||
-
|
||||
I release the sales order's reservations
|
||||
-
|
||||
@@ -57,6 +57,6 @@
|
||||
-
|
||||
I check Virtual stock of Gelato after release of reservations
|
||||
-
|
||||
!python {model: product.product}: |
|
||||
product = self.browse(cr, uid, ref('product_gelato'), context=context)
|
||||
assert product.virtual_available == 10, "Stock is not updated."
|
||||
!python {model: product.product, id: product_gelato}: |
|
||||
from nose.tools import *
|
||||
assert_almost_equal(self.virtual_available, 10.0)
|
||||
|
||||
Reference in New Issue
Block a user