mirror of
https://github.com/pretix/pretix.git
synced 2026-05-04 15:04:03 +00:00
Upgrade bs4 and be compatible to latest soupsieve
This commit is contained in:
@@ -238,15 +238,15 @@ class EventsTest(SoupTest):
|
||||
def test_plugins(self):
|
||||
doc = self.get_doc('/control/event/%s/%s/settings/plugins' % (self.orga1.slug, self.event1.slug))
|
||||
self.assertIn("PayPal", doc.select(".form-plugins")[0].text)
|
||||
self.assertIn("Enable", doc.select("[name=plugin:pretix.plugins.paypal]")[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),
|
||||
{'plugin:pretix.plugins.paypal': 'enable'})
|
||||
self.assertIn("Disable", doc.select("[name=plugin:pretix.plugins.paypal]")[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),
|
||||
{'plugin:pretix.plugins.paypal': 'disable'})
|
||||
self.assertIn("Enable", doc.select("[name=plugin:pretix.plugins.paypal]")[0].text)
|
||||
self.assertIn("Enable", doc.select("[name=\"plugin:pretix.plugins.paypal\"]")[0].text)
|
||||
|
||||
def test_live_disable(self):
|
||||
self.event1.live = False
|
||||
|
||||
Reference in New Issue
Block a user