Widget: Do not declare products "FREE" if they have mandatory addons (#3041)

This commit is contained in:
Raphael Michel
2023-01-20 09:15:14 +01:00
committed by GitHub
parent 6c3e745d5d
commit 56d928d5ec
3 changed files with 18 additions and 2 deletions

View File

@@ -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,