Skip to content

Commit bf23394

Browse files
committed
Merge PR #804 into 18.0
Signed-off-by AaronHForgeFlow
2 parents f120201 + 6d77a00 commit bf23394

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

account_operating_unit/tests/test_payment_operating_unit.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def test_payment_from_invoice(self):
3838
# Validate that inter OU balance move lines are created
3939
self.assertEqual(len(payment.move_id.line_ids), 4)
4040
self.assertAlmostEqual(payment.amount, self.invoice.amount_total)
41-
self.assertEqual(payment.state, "paid")
41+
self.assertIn(payment.state, ["paid", "in_process"])
4242
self.assertEqual(self.invoice.payment_state, "paid")
4343

4444
def test_payment_from_two_invoices(self):
@@ -77,7 +77,7 @@ def test_payment_from_two_invoices(self):
7777
# Validate that inter OU balance move lines are created
7878
self.assertEqual(len(payment.move_id.line_ids), 2)
7979
self.assertEqual(payment.amount, invoices[0].amount_total)
80-
self.assertEqual(payment.state, "paid")
80+
self.assertIn(payment.state, ["paid", "in_process"])
8181
for invoice in invoices:
8282
self.assertEqual(invoice.payment_state, "paid")
8383

0 commit comments

Comments
 (0)