mirror of
https://github.com/pretix/pretix.git
synced 2026-08-12 11:07:02 +00:00
Co-authored-by: Raphael Michel <michel@rami.io> Co-authored-by: Martin Gross <gross@rami.io>
This commit is contained in:
co-authored by
Martin Gross
parent
2e0be8c801
commit
925b8334a9
@@ -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