mirror of
https://github.com/pretix/pretix.git
synced 2026-10-01 19:14:43 +00:00
Delete PayPal integration v1 (#6530)
* Delete PayPal integration v1 Leaving only migrations behind * Try to fix CI * Fix tests some more * Rename more plugin name instances in tests and docs --------- Co-authored-by: Martin Gross <martin@pc-coholic.de>
This commit is contained in:
co-authored by
Martin Gross
parent
b3e0892d76
commit
59026da06b
@@ -37,26 +37,26 @@ def event():
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_require_plugin(event, client):
|
||||
event.plugins = 'pretix.plugins.paypal'
|
||||
event.plugins = 'pretix.plugins.paypal2'
|
||||
event.live = True
|
||||
event.save()
|
||||
r = client.get('/mrmcd/2015/paypal/abort/', follow=False)
|
||||
r = client.get('/mrmcd/2015/paypal2/abort/', follow=False)
|
||||
assert r.status_code == 302
|
||||
event.plugins = ''
|
||||
event.save()
|
||||
r = client.get('/mrmcd/2015/paypal/abort/', follow=False)
|
||||
r = client.get('/mrmcd/2015/paypal2/abort/', follow=False)
|
||||
assert r.status_code == 404
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_require_live(event, client):
|
||||
event.plugins = 'pretix.plugins.paypal'
|
||||
event.plugins = 'pretix.plugins.paypal2'
|
||||
event.live = True
|
||||
event.save()
|
||||
r = client.get('/mrmcd/2015/paypal/abort/', follow=False)
|
||||
r = client.get('/mrmcd/2015/paypal2/abort/', follow=False)
|
||||
assert r.status_code == 302
|
||||
|
||||
event.live = False
|
||||
event.save()
|
||||
r = client.get('/mrmcd/2015/paypal/abort/', follow=False)
|
||||
r = client.get('/mrmcd/2015/paypal2/abort/', follow=False)
|
||||
assert r.status_code == 403
|
||||
|
||||
Reference in New Issue
Block a user