mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[FIX] Function changes on tests
This commit is contained in:
committed by
Sergio Teruel
parent
03d6afd7ac
commit
de49bfaafc
@@ -95,7 +95,7 @@ class TestStockInventoryPreparationFilterCategories(common.TransactionCase):
|
||||
'location_id': self.location.id,
|
||||
'categ_ids': [(6, 0, [self.category.id])],
|
||||
})
|
||||
inventory.prepare_inventory()
|
||||
inventory.action_start()
|
||||
self.assertEqual(len(inventory.line_ids), 2)
|
||||
line1 = inventory.line_ids[0]
|
||||
self.assertEqual(line1.product_id, self.product1)
|
||||
@@ -115,7 +115,7 @@ class TestStockInventoryPreparationFilterCategories(common.TransactionCase):
|
||||
'product_ids': [(6, 0, [self.product1.id, self.product2.id])],
|
||||
}
|
||||
)
|
||||
inventory.prepare_inventory()
|
||||
inventory.action_start()
|
||||
self.assertEqual(len(inventory.line_ids), 2)
|
||||
line1 = inventory.line_ids[0]
|
||||
self.assertEqual(line1.product_id, self.product1)
|
||||
@@ -135,7 +135,7 @@ class TestStockInventoryPreparationFilterCategories(common.TransactionCase):
|
||||
'lot_ids': [(6, 0, [self.lot.id, ])],
|
||||
}
|
||||
)
|
||||
inventory.prepare_inventory()
|
||||
inventory.action_start()
|
||||
self.assertEqual(len(inventory.line_ids), 1)
|
||||
line1 = inventory.line_ids[0]
|
||||
self.assertEqual(line1.product_id, self.product_lot)
|
||||
@@ -167,7 +167,7 @@ class TestStockInventoryPreparationFilterCategories(common.TransactionCase):
|
||||
}),
|
||||
],
|
||||
})
|
||||
inventory.prepare_inventory()
|
||||
inventory.action_start()
|
||||
self.assertEqual(len(inventory.line_ids), 3)
|
||||
line1 = inventory.line_ids[0]
|
||||
self.assertEqual(line1.product_id, self.product1)
|
||||
|
||||
Reference in New Issue
Block a user