forked from CGM_Public/pretix_original
Fix failing tests after Stripe provider change
This commit is contained in:
@@ -1539,7 +1539,8 @@ class PaymentViewSet(CreateModelMixin, viewsets.ReadOnlyModelViewSet):
|
||||
source=OrderRefund.REFUND_SOURCE_ADMIN,
|
||||
state=OrderRefund.REFUND_STATE_CREATED,
|
||||
amount=amount,
|
||||
provider=payment.provider
|
||||
provider=payment.provider,
|
||||
info='{}',
|
||||
)
|
||||
payment.order.log_action('pretix.event.order.refund.created', {
|
||||
'local_id': r.local_id,
|
||||
|
||||
@@ -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"
|
||||
},
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user