mirror of
https://github.com/pretix/pretix.git
synced 2026-05-04 15:04:03 +00:00
Properly restrict refunds to full payment amount
This commit is contained in:
@@ -1402,7 +1402,10 @@ def test_refund_paid_order_automatically(client, env, monkeypatch):
|
||||
|
||||
def charge_retr(*args, **kwargs):
|
||||
def refund_create(amount):
|
||||
pass
|
||||
r = MockedCharge()
|
||||
r.id = 'foo'
|
||||
r.status = 'succeeded'
|
||||
return r
|
||||
|
||||
c = MockedCharge()
|
||||
c.refunds.create = refund_create
|
||||
|
||||
Reference in New Issue
Block a user