Fix failing tests after Stripe provider change

This commit is contained in:
Raphael Michel
2023-02-17 09:58:36 +01:00
parent 83b10ecd23
commit 72aaf24a40
3 changed files with 10 additions and 2 deletions

View File

@@ -222,7 +222,7 @@ TEST_REFUNDS_RES = [
"execution_date": "2017-12-01T10:00:00Z",
"comment": None,
"provider": "stripe",
"details": {},
"details": {"id": None},
"state": "done",
"amount": "23.00"
},

View File

@@ -85,6 +85,13 @@ class MockedCharge():
id = 'ch_123345345'
refunds = MockedRefunds()
def __str__(self):
return json.dumps({
'id': self.id,
'status': self.status,
'paid': self.paid,
})
def refresh(self):
pass