forked from CGM_Public/pretix_original
Prevent parallel refunds for the same order (Z#23152965) (#4136)
This commit is contained in:
@@ -72,6 +72,7 @@ def test_perform_refund(client, env):
|
||||
r = client.post(url, {
|
||||
f"refund-{payment.id}": "23.00",
|
||||
"start-mode": "full",
|
||||
"last_known_refund_id": 0,
|
||||
"perform": True,
|
||||
})
|
||||
assert r.status_code == 302
|
||||
@@ -102,6 +103,7 @@ def test_cannot_perform_refund_with_invalid_iban(client, env):
|
||||
r = client.post(url, {
|
||||
f"refund-{payment.id}": "23.00",
|
||||
"start-mode": "full",
|
||||
"last_known_refund_id": 0,
|
||||
"perform": True,
|
||||
})
|
||||
assert r.status_code == 200 # no successfull POST
|
||||
|
||||
Reference in New Issue
Block a user