mirror of
https://github.com/pretix/pretix.git
synced 2026-05-04 15:04:03 +00:00
Do not show availability for currently-selected add-on
This commit is contained in:
@@ -2,7 +2,7 @@ from bs4 import BeautifulSoup
|
||||
from django.test import TestCase
|
||||
|
||||
|
||||
class SoupTest(TestCase):
|
||||
class SoupTestMixin:
|
||||
|
||||
def get_doc(self, *args, **kwargs):
|
||||
response = self.client.get(*args, **kwargs)
|
||||
@@ -17,6 +17,10 @@ class SoupTest(TestCase):
|
||||
return BeautifulSoup(response.content, "lxml")
|
||||
|
||||
|
||||
class SoupTest(SoupTestMixin, TestCase):
|
||||
pass
|
||||
|
||||
|
||||
def extract_form_fields(soup):
|
||||
"""
|
||||
Turn a BeautifulSoup form in to a dict of fields and default values
|
||||
|
||||
Reference in New Issue
Block a user