Skip to content

Commit

Permalink
Minor tweaks to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aviupadhyayula committed Jan 3, 2025
1 parent 0efdc96 commit 58f36f3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/tests/clubs/test_ticketing.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ def commonSetUp(self):

self.ticket_settings = TicketSettings.objects.create(
event=self.event1,
order_limit=10,
)

self.ticket_totals = [
Expand Down Expand Up @@ -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 = {
Expand Down

0 comments on commit 58f36f3

Please sign in to comment.