mirror of
https://github.com/pretix/pretix.git
synced 2026-05-04 15:04:03 +00:00
Widget: Do not declare products "FREE" if they have mandatory addons (#3041)
This commit is contained in:
@@ -185,6 +185,7 @@ class WidgetCartTest(CartTestMixin, TestCase):
|
||||
"picture": None,
|
||||
"has_variations": 0,
|
||||
"allow_waitinglist": True,
|
||||
"mandatory_priced_addons": False,
|
||||
"description": None,
|
||||
"min_price": None,
|
||||
"avail": [100, None],
|
||||
@@ -203,6 +204,7 @@ class WidgetCartTest(CartTestMixin, TestCase):
|
||||
"picture": None,
|
||||
"has_variations": 4,
|
||||
"allow_waitinglist": True,
|
||||
"mandatory_priced_addons": False,
|
||||
"description": None,
|
||||
"min_price": "12.00",
|
||||
"avail": None,
|
||||
@@ -263,6 +265,7 @@ class WidgetCartTest(CartTestMixin, TestCase):
|
||||
"picture": None,
|
||||
"has_variations": 0,
|
||||
"allow_waitinglist": True,
|
||||
"mandatory_priced_addons": False,
|
||||
"description": None,
|
||||
"min_price": None,
|
||||
"avail": [100, None],
|
||||
@@ -307,6 +310,7 @@ class WidgetCartTest(CartTestMixin, TestCase):
|
||||
"picture": None,
|
||||
"has_variations": 4,
|
||||
"allow_waitinglist": True,
|
||||
"mandatory_priced_addons": False,
|
||||
"description": None,
|
||||
"min_price": "12.00",
|
||||
"avail": None,
|
||||
@@ -365,6 +369,7 @@ class WidgetCartTest(CartTestMixin, TestCase):
|
||||
"picture": None,
|
||||
"has_variations": 0,
|
||||
"allow_waitinglist": True,
|
||||
"mandatory_priced_addons": False,
|
||||
"description": None,
|
||||
"min_price": None,
|
||||
"avail": [100, None],
|
||||
@@ -417,6 +422,7 @@ class WidgetCartTest(CartTestMixin, TestCase):
|
||||
'description': None,
|
||||
'has_variations': 2,
|
||||
"allow_waitinglist": True,
|
||||
"mandatory_priced_addons": False,
|
||||
'require_voucher': False,
|
||||
'order_min': None,
|
||||
'order_max': None,
|
||||
|
||||
Reference in New Issue
Block a user