diff --git a/tests/unit/ticket/test_views.py b/tests/unit/ticket/test_views.py index d2132d9..4c2bf73 100644 --- a/tests/unit/ticket/test_views.py +++ b/tests/unit/ticket/test_views.py @@ -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): @@ -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, @@ -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, @@ -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)