Fix invalid tests

This commit is contained in:
Raphael Michel
2018-09-03 16:55:04 +02:00
parent 678a936897
commit 0a2cd208b2
3 changed files with 9 additions and 3 deletions

View File

@@ -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