diff options
| author | Yannick Tivisse <yti@odoo.com> | 2015-07-16 11:36:31 +0200 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2015-07-17 15:32:31 +0200 |
| commit | e9ad290221c6e9445fddebfade0e8ca9bc528aec (patch) | |
| tree | 5d58894ab1e02e0a81a945770da6ef81fa8a6097 | |
| parent | e4fd912e2223be1bca0d6d941b750e1507606dac (diff) | |
[IMP] stock : small test improvement
| -rw-r--r-- | addons/stock/test/packing.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/stock/test/packing.yml b/addons/stock/test/packing.yml index 22be2e82220..e948caa4a77 100644 --- a/addons/stock/test/packing.yml +++ b/addons/stock/test/packing.yml @@ -121,9 +121,9 @@ reco_id = self.search(cr ,uid , [('product_id','=',ref('product1'))], context=context) for rec in self.browse(cr, uid, reco_id, context=context): if rec.package_id.name == 'Pallet 1' and rec.location_id.id == ref('stock_location_customers'): - assert rec.qty == 120, "Should have 120 pieces on pallet 1" + assert rec.qty == 120, "Should have 120 pieces on pallet 1, got " + str(rec.qty) elif rec.package_id.name == 'Pallet 2' and rec.location_id.id == ref('stock_location_stock'): - assert rec.qty == 100, "Should have 100 pieces in stock on pallet 2" + assert rec.qty == 100, "Should have 100 pieces in stock on pallet 2, got " + str(rec.qty) elif rec.lot_id.name == 'Lot A' and rec.location_id.id == ref('stock_location_customers'): assert (rec.qty == 20 and not rec.package_id), "Should have 20 pieces in customer location from pallet 2" elif rec.package_id.name == 'Pallet 3' and rec.location_id.id == ref('stock_location_stock'): |
