mirror of
https://github.com/pretix/pretix.git
synced 2026-08-29 13:44:40 +00:00
Fixed plugin tests
This commit is contained in:
@@ -54,16 +54,16 @@ class EventsTest(SoupTest):
|
|||||||
|
|
||||||
def test_plugins(self):
|
def test_plugins(self):
|
||||||
doc = self.get_doc('/control/event/%s/%s/settings/plugins' % (self.orga1.slug, self.event1.slug))
|
doc = self.get_doc('/control/event/%s/%s/settings/plugins' % (self.orga1.slug, self.event1.slug))
|
||||||
self.assertIn("Bank transfer", doc.select(".form-plugins")[0].text)
|
self.assertIn("PayPal", doc.select(".form-plugins")[0].text)
|
||||||
self.assertIn("Enable", doc.select("[name=plugin:pretix.plugins.banktransfer]")[0].text)
|
self.assertIn("Enable", doc.select("[name=plugin:pretix.plugins.paypal]")[0].text)
|
||||||
|
|
||||||
doc = self.post_doc('/control/event/%s/%s/settings/plugins' % (self.orga1.slug, self.event1.slug),
|
doc = self.post_doc('/control/event/%s/%s/settings/plugins' % (self.orga1.slug, self.event1.slug),
|
||||||
{'plugin:pretix.plugins.banktransfer': 'enable'})
|
{'plugin:pretix.plugins.paypal': 'enable'})
|
||||||
self.assertIn("Disable", doc.select("[name=plugin:pretix.plugins.banktransfer]")[0].text)
|
self.assertIn("Disable", doc.select("[name=plugin:pretix.plugins.paypal]")[0].text)
|
||||||
|
|
||||||
doc = self.post_doc('/control/event/%s/%s/settings/plugins' % (self.orga1.slug, self.event1.slug),
|
doc = self.post_doc('/control/event/%s/%s/settings/plugins' % (self.orga1.slug, self.event1.slug),
|
||||||
{'plugin:pretix.plugins.banktransfer': 'disable'})
|
{'plugin:pretix.plugins.paypal': 'disable'})
|
||||||
self.assertIn("Enable", doc.select("[name=plugin:pretix.plugins.banktransfer]")[0].text)
|
self.assertIn("Enable", doc.select("[name=plugin:pretix.plugins.paypal]")[0].text)
|
||||||
|
|
||||||
def test_live_disable(self):
|
def test_live_disable(self):
|
||||||
self.event1.live = False
|
self.event1.live = False
|
||||||
|
|||||||
Reference in New Issue
Block a user