Skip to content

Commit

Permalink
fixed test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Suryansh5545 committed Jun 12, 2024
1 parent af0a3dc commit 35ac65a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/unit/ticket/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from transactions.models import Transaction
from django.contrib.auth.models import User
from django.utils.timezone import make_aware
import pdb


class TestTicket(TestCase):
Expand All @@ -17,7 +18,7 @@ def setUp(self):
name="Event",
description="Test Event",
start_date="2023-09-26",
end_date="2023-09-29",
end_date="2030-09-29",
location="Test",
price=300.00,
sub_events_included_allowed=3,
Expand Down Expand Up @@ -53,7 +54,7 @@ def setUp(self):
customer_name="Test User",
customer_email="example@email.com",
customer_phone="1234567890",
event_id=1,
event=self.event,
is_active=True,
check_in="1234567890",
transaction_id=self.transaction,
Expand Down Expand Up @@ -108,7 +109,6 @@ def test_handle_check_in_with_qr(self):
"/api/ticket/handle_check_in/",
{
"ticket_id": self.ticket.check_in,
"operator": self.user.id,
},
)
self.assertEqual(request.status_code, 200)
Expand Down

0 comments on commit 35ac65a

Please sign in to comment.