API: Allow to psas comment when issuing refund

This commit is contained in:
Raphael Michel
2025-09-23 16:49:32 +02:00
committed by Raphael Michel
parent d250fdf327
commit 2dc772cfcc
2 changed files with 6 additions and 0 deletions

View File

@@ -845,6 +845,7 @@ def test_payment_refund_success(token_client, organizer, event, order, monkeypat
organizer.slug, event.slug, order.code, p1.local_id
), format='json', data={
'amount': '23.00',
'comment': 'Foo',
'mark_canceled': False,
})
assert resp.status_code == 200
@@ -853,6 +854,7 @@ def test_payment_refund_success(token_client, organizer, event, order, monkeypat
assert r.provider == "stripe"
assert r.state == OrderRefund.REFUND_STATE_DONE
assert r.source == OrderRefund.REFUND_SOURCE_ADMIN
assert r.comment == "Foo"
@pytest.mark.django_db