diff --git a/backend/tests/clubs/test_ticketing.py b/backend/tests/clubs/test_ticketing.py index 964867fcc..2e8ca9f74 100644 --- a/backend/tests/clubs/test_ticketing.py +++ b/backend/tests/clubs/test_ticketing.py @@ -62,7 +62,6 @@ def commonSetUp(self): self.ticket_settings = TicketSettings.objects.create( event=self.event1, - order_limit=10, ) self.ticket_totals = [ @@ -616,6 +615,9 @@ def test_add_to_cart_twice_accumulates(self): self.assertEqual(cart.tickets.filter(type="premium").count(), 2, cart.tickets) def test_add_to_cart_order_limit_exceeded(self): + self.ticket_settings.order_limit = 10 + self.ticket_settings.save() + self.client.login(username=self.user1.username, password="test") tickets_to_add = {