mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
Allow to disable self-choice seating
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user