mirror of
https://github.com/pretix/pretix.git
synced 2026-05-09 15:54:03 +00:00
Change test, so at least body-element is available and ticket not in there
This commit is contained in:
@@ -430,12 +430,8 @@ class ItemDisplayTest(EventTestMixin, SoupTest):
|
|||||||
self.event.settings.hide_sold_out = True
|
self.event.settings.hide_sold_out = True
|
||||||
|
|
||||||
doc = self.get_doc('/%s/%s/' % (self.orga.slug, self.event.slug))
|
doc = self.get_doc('/%s/%s/' % (self.orga.slug, self.event.slug))
|
||||||
html_element = doc.select("article:nth-of-type(1) div:nth-of-type(1)")
|
self.assertNotIn("Early-bird", doc.select("body")[0].text)
|
||||||
if (html_element):
|
self.assertNotIn("SOLD OUT", doc.select("body")[0].text)
|
||||||
self.assertNotIn("Early-bird", html_element[0].text)
|
|
||||||
html_element = doc.select("article:nth-of-type(1)")
|
|
||||||
if (html_element):
|
|
||||||
self.assertNotIn("SOLD OUT", html_element[0].text)
|
|
||||||
|
|
||||||
def test_hidden_if_available(self):
|
def test_hidden_if_available(self):
|
||||||
with scopes_disabled():
|
with scopes_disabled():
|
||||||
|
|||||||
Reference in New Issue
Block a user