Skip to content

Commit

Permalink
[FIX] Test script
Browse files Browse the repository at this point in the history
  • Loading branch information
TheerayutEncoder committed Feb 25, 2025
1 parent 43b5eb0 commit a414631
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def test_02_cancel_payment(self):
payment = payment_register_form.save()
payment.action_create_payments()
payment = self.payment_model.search([], order="id desc", limit=1)
self.assertEqual(payment.state, "posted")
self.assertEqual(payment.state, "paid")
# Click cance, cancel confirm wizard will open. Type in cancel_reason
res = payment.action_cancel()
ctx = res.get("context")
Expand All @@ -93,7 +93,7 @@ def test_02_cancel_payment(self):
# Confirm cancel on wizard
wiz.confirm_cancel()
self.assertEqual(payment.cancel_reason, wizard.cancel_reason)
self.assertEqual(payment.state, "cancel")
self.assertEqual(payment.state, "canceled")
# Set to draft
payment.action_draft()
self.assertEqual(payment.cancel_reason, False)
Expand Down

0 comments on commit a414631

Please sign in to comment.