Skip to content

Commit

Permalink
[FIX] mrp_stock_analytic: do not test full action dict equality
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
aisopuro committed Sep 5, 2024
1 parent b583392 commit 6ed3b79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mrp_stock_analytic/tests/test_mrp_stock_analytic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 6ed3b79

Please sign in to comment.