Skip to content

Commit

Permalink
fix tests ...
Browse files Browse the repository at this point in the history
  • Loading branch information
john-herholz-dt committed Jan 29, 2024
1 parent a795271 commit a8d0719
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions connector_ecommerce/tests/test_picking_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def test_event_on_picking_out_done(self):
self.picking.action_assign()
for move in self.picking.move_ids:
move.move_line_ids.quantity = move.product_qty
move.move_line_ids.picked = True
self.picking._action_done()
self.assertEqual(self.picking.state, "done")
mock_event("on_picking_out_done").notify.assert_called_with(
Expand All @@ -84,6 +85,7 @@ def test_event_on_picking_out_done_partial(self):
self.picking.action_confirm()
self.picking.action_assign()
self.picking.move_line_ids.quantity = 1.0
self.picking.move_line_ids.picked = True
self.picking._action_done()
self.assertEqual(self.picking.state, "done")
mock_event("on_picking_out_done").notify.assert_called_with(
Expand Down

0 comments on commit a8d0719

Please sign in to comment.