mirror of
https://github.com/pretix/pretix.git
synced 2026-05-03 14:54:04 +00:00
Fix invalid tests
This commit is contained in:
@@ -382,7 +382,10 @@ def test_payment_refund_fail(token_client, organizer, event, order, monkeypatch)
|
||||
def test_payment_refund_success(token_client, organizer, event, order, 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
|
||||
|
||||
@@ -1019,7 +1019,7 @@ class OrderTestCase(BaseQuotaTestCase):
|
||||
o = Order.annotate_overpayments(Order.objects.all()).first()
|
||||
assert not o.is_underpaid
|
||||
assert not o.is_overpaid
|
||||
assert not o.is_pending_with_full_payment
|
||||
assert o.is_pending_with_full_payment
|
||||
assert not o.has_pending_refund
|
||||
assert not o.has_external_refund
|
||||
|
||||
|
||||
@@ -206,7 +206,10 @@ def test_refund_success(env, factory, 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