mirror of
https://github.com/pretix/pretix.git
synced 2026-05-04 15:04:03 +00:00
Co-authored-by: Raphael Michel <michel@rami.io> Co-authored-by: Martin Gross <gross@rami.io>
This commit is contained in:
@@ -57,12 +57,8 @@ def test_require_live(event, client):
|
||||
event.save()
|
||||
r = client.get('/mrmcd/2015/paypal/abort/', follow=False)
|
||||
assert r.status_code == 302
|
||||
r = client.get('/mrmcd/2015/paypal/webhook/', follow=False)
|
||||
assert r.status_code == 405
|
||||
|
||||
event.live = False
|
||||
event.save()
|
||||
r = client.get('/mrmcd/2015/paypal/abort/', follow=False)
|
||||
assert r.status_code == 403
|
||||
r = client.get('/mrmcd/2015/paypal/webhook/', follow=False)
|
||||
assert r.status_code == 405
|
||||
|
||||
Reference in New Issue
Block a user