Skip to content

Commit

Permalink
delivery: fix failing test
Browse files Browse the repository at this point in the history
When we call the "done" endpoint and a backorder is created, the test
ensure the backorder is out of scope: nothing in the "done" endpoint
ensures that the backorder is assigned; it calls
"picking.action_done()": this check is testing the behavior of
"action_done" which is supposed to be tested in the stock module.
Actually, this condition currently fails because of another module
(probably depends of the configuration), but this is not what we want
to test here.
  • Loading branch information
guewen committed Oct 19, 2020
1 parent c5dcd12 commit 77968d9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion shopfloor/tests/test_delivery_done.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,4 @@ def test_done_some_qty_done_confirm(self):
self.assertEqual(self.picking.move_lines, self.raw_move)
backorder = self.picking.backorder_ids
self.assertTrue(backorder)
self.assertEqual(backorder.state, "assigned")
self.assertEqual(self.pack1_moves.picking_id, backorder)

0 comments on commit 77968d9

Please sign in to comment.