Allow for gt and gte selection of change_allow_user_price (#1746)

This commit is contained in:
Martin Gross
2020-08-07 11:54:27 +02:00
committed by GitHub
parent 7d9220ae3e
commit 750c3c5201
6 changed files with 118 additions and 4 deletions

View File

@@ -1565,6 +1565,12 @@ class OrderTestCase(BaseQuotaTestCase):
self.event.settings.change_allow_user_variation = True
assert self.order.user_change_allowed
self.event.settings.change_allow_user_variation = False
self.order.require_approval = True
assert not self.order.user_change_allowed
self.event.settings.change_allow_user_variation = True
assert not self.order.user_change_allowed
@classscope(attr='o')
def test_can_change_order_with_giftcard(self):
item1 = Item.objects.create(event=self.event, name="Ticket", default_price=23,