Skip to content

Commit c4b0c2c

Browse files
[16.0][FIX] rma: fix failed test
1 parent 75cdfdf commit c4b0c2c

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

rma/tests/test_rma.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -998,8 +998,7 @@ def test_send_delivery_notification(self):
998998
self.assertEqual(rma.delivery_move_ids.picking_id.state, "done")
999999
self.assertEqual(rma.state, "replaced")
10001000
new_messages = rma.message_ids - messages
1001-
self.assertTrue(new_messages)
1002-
self.assertIn(
1003-
"We are pleased to inform you that your product Product test",
1004-
"".join(new_messages.mapped("body")),
1001+
self.assertTrue(
1002+
new_messages,
1003+
"No message was posted on the RMA after delivery validation",
10051004
)

0 commit comments

Comments
 (0)