Allow to disable self-choice seating

This commit is contained in:
Raphael Michel
2020-09-06 13:38:44 +02:00
parent fb701f25f4
commit d999971249
13 changed files with 94 additions and 31 deletions

View File

@@ -3244,6 +3244,13 @@ class CheckoutSeatingTest(BaseCheckoutTestCase, TestCase):
_perform_order(self.event, 'manual', [self.cp1.pk], 'admin@example.org', 'en', None, {}, 'web')
assert not CartPosition.objects.filter(pk=self.cp1.pk).exists()
@scopes_disabled()
def test_seat_not_required_if_no_choice(self):
self.cp1.seat = None
self.cp1.save()
self.event.settings.seating_choice = False
_perform_order(self.event, 'manual', [self.cp1.pk], 'admin@example.org', 'en', None, {}, 'web')
@scopes_disabled()
def test_seat_not_allowed(self):
self.cp1.item = self.workshop1