Cart: ensure free price input is decimal (PRETIXEU-80N)

Co-authored-by: Phin Wolkwitz <wolkwitz@rami.io>
This commit is contained in:
Richard Schreiber
2023-03-21 08:51:49 +01:00
committed by GitHub
parent 5ad0f92776
commit e9b22b7d33
5 changed files with 59 additions and 7 deletions

View File

@@ -3138,6 +3138,9 @@ class CheckoutTestCase(BaseCheckoutTestCase, TestCase):
assert cp1.addons.last().item == self.workshop1
def test_set_addon_free_price(self):
self.event.settings.locales = ['de']
self.event.settings.locale = 'de'
with scopes_disabled():
self.workshop1.free_price = True
self.workshop1.save()