From 6ed3b79fb00e226cbdcb3b1a71355e74415e3caa Mon Sep 17 00:00:00 2001 From: Atte Isopuro Date: Thu, 5 Sep 2024 18:29:29 +0300 Subject: [PATCH] [FIX] mrp_stock_analytic: do not test full action dict equality mrp recently added additional things into the context in a way that broke the test. It was over-engineered anyway, we can make do with a simpler approach. --- mrp_stock_analytic/tests/test_mrp_stock_analytic.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mrp_stock_analytic/tests/test_mrp_stock_analytic.py b/mrp_stock_analytic/tests/test_mrp_stock_analytic.py index e1b657e587..362441371a 100644 --- a/mrp_stock_analytic/tests/test_mrp_stock_analytic.py +++ b/mrp_stock_analytic/tests/test_mrp_stock_analytic.py @@ -128,8 +128,8 @@ def test_analytic_propagation_backorder(self): self.assertTrue(quantity_issues) backorder_action = production.button_mark_done() self.assertEqual( - backorder_action, - production._action_generate_backorder_wizard(quantity_issues), + backorder_action.get("res_model"), + "mrp.production.backorder", ) backorder_wizard = self._action_wizard_form(production, backorder_action) backorder_wizard.save().action_backorder()