Skip to content

Commit 8e13a26

Browse files
committed
sale_automatic_workflow: fix issue in test
1 parent 89d79b8 commit 8e13a26

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sale_automatic_workflow/tests/test_automatic_workflow.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,10 @@ def test_create_invoice_from_sale_order(self):
9191
mocked.assert_called()
9292
self.assertEqual(line.qty_delivered, 1.0)
9393
sale.action_confirm()
94-
self.assertTrue(sale.delivery_status, "pending")
95-
self.assertFalse(sale.all_qty_delivered)
94+
# Force the state to "full"
95+
# note : this is not needed if you have the module sale_delivery_state
96+
# installed but sale_automatic_workflow do not depend on it
97+
# so we just force it so we can check the sale.all_qty_delivered
9698
sale.delivery_status = "full"
9799
sale._compute_all_qty_delivered()
98100
self.assertTrue(sale.all_qty_delivered)

0 commit comments

Comments
 (0)