mirror of
https://github.com/pretix/pretix.git
synced 2026-05-03 14:54:04 +00:00
Webhooks: Add vouchers (Z#23203072) (#5360)
* Webhooks: Add vouchers (Z#23203072) This also requires more consistent usage of webhook types to avoid vouchers not being known to the external system. * Update src/pretix/api/webhooks.py Co-authored-by: luelista <weller@rami.io> * Fix shredder test --------- Co-authored-by: luelista <weller@rami.io>
This commit is contained in:
@@ -140,7 +140,7 @@ def test_waitinglist_shredder(event, item):
|
||||
)
|
||||
wle.send_voucher()
|
||||
assert '@' in wle.voucher.comment
|
||||
assert '@' in wle.voucher.all_logentries().last().data
|
||||
assert '@' in wle.voucher.all_logentries().get(action_type="pretix.voucher.added.waitinglist").data
|
||||
s = WaitingListShredder(event)
|
||||
f = list(s.generate_files())
|
||||
assert json.loads(f[0][2]) == [
|
||||
@@ -166,7 +166,7 @@ def test_waitinglist_shredder(event, item):
|
||||
assert '@' not in wle.email
|
||||
assert '+49' not in str(wle.phone)
|
||||
assert '@' not in wle.voucher.comment
|
||||
assert '@' not in wle.voucher.all_logentries().last().data
|
||||
assert '@' not in wle.voucher.all_logentries().get(action_type="pretix.voucher.added.waitinglist").data
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
|
||||
Reference in New Issue
Block a user