From d4eae01e14f8aa469c7f59b614d97941ee74d0c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 3 Feb 2024 16:12:12 +0100 Subject: [PATCH] Wait for dispute status change in Stripe scenario Closes #12221 --- .../tests/scenario_account_payment_stripe_dispute.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/account_payment_stripe/tests/scenario_account_payment_stripe_dispute.rst b/modules/account_payment_stripe/tests/scenario_account_payment_stripe_dispute.rst index 65fa49abd6..fd097c86da 100644 --- a/modules/account_payment_stripe/tests/scenario_account_payment_stripe_dispute.rst +++ b/modules/account_payment_stripe/tests/scenario_account_payment_stripe_dispute.rst @@ -290,7 +290,7 @@ Simulate charge.dispute.closed event:: >>> for _ in range(MAX_SLEEP): ... cron_fetch_events.click('run_once') ... payment.reload() - ... if payment.state == 'succeeded': + ... if payment.stripe_dispute_status == 'won': ... break ... time.sleep(FETCH_SLEEP) >>> payment.state