From 40af8dc4ee04547ef66be97b98fba36ca53bbca3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 9 Jun 2024 17:29:22 +0200 Subject: [PATCH] Fix test_assign_try_with_lot of stock_lot Closes #13318 --- modules/stock_lot/tests/test_module.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/stock_lot/tests/test_module.py b/modules/stock_lot/tests/test_module.py index 2f35628bcb..c524e7daf5 100644 --- a/modules/stock_lot/tests/test_module.py +++ b/modules/stock_lot/tests/test_module.py @@ -214,7 +214,7 @@ class StockLotTestCase(CompanyTestMixin, ModuleTestCase): self.assertEqual(lot_cache.internal_quantity, quantities[(lot_cache.location, lot_cache.lot)]) - @with_transaction + @with_transaction() def test_assign_try_with_lot(self): "Test Move assign_try with lot" pool = Pool() @@ -305,8 +305,8 @@ class StockLotTestCase(CompanyTestMixin, ModuleTestCase): (m.lot, m.quantity, m.state) for m in moves}, { (lot1, 2, 'assigned'), (lot2, 3, 'assigned'), - (None, 1, 'assigned'), - (None, 4, 'draft'), + (None, 3, 'assigned'), + (None, 2, 'draft'), })