diff --git a/buzz/events/doctype/offline_payment_method/test_offline_payment_method.py b/buzz/events/doctype/offline_payment_method/test_offline_payment_method.py index 969926d2..46327e71 100644 --- a/buzz/events/doctype/offline_payment_method/test_offline_payment_method.py +++ b/buzz/events/doctype/offline_payment_method/test_offline_payment_method.py @@ -6,6 +6,10 @@ class TestOfflinePaymentMethod(IntegrationTestCase): + def setUp(self): + # Clean up any leftover Offline Payment Method records from previous tests + frappe.db.delete("Offline Payment Method") + def test_unique_title_per_event(self): """Test that two methods with the same title cannot exist for the same event.""" test_event = frappe.get_doc("Buzz Event", {"route": "test-route"}) diff --git a/buzz/ticketing/doctype/event_booking/test_event_booking.py b/buzz/ticketing/doctype/event_booking/test_event_booking.py index 2137248a..5334e643 100644 --- a/buzz/ticketing/doctype/event_booking/test_event_booking.py +++ b/buzz/ticketing/doctype/event_booking/test_event_booking.py @@ -823,6 +823,7 @@ def test_process_booking_offline_stays_in_draft(self): test_event = frappe.get_doc("Buzz Event", {"route": "test-route"}) test_event.apply_tax = False + test_event.is_published = True test_event.save() self._cleanup_offline_methods(test_event.name) @@ -879,6 +880,7 @@ def test_process_booking_offline_generates_tickets_on_approval(self): test_event = frappe.get_doc("Buzz Event", {"route": "test-route"}) test_event.apply_tax = False + test_event.is_published = True test_event.save() self._cleanup_offline_methods(test_event.name) @@ -938,6 +940,8 @@ def test_process_booking_without_utm_parameters(self): from buzz.api import process_booking test_event = frappe.get_doc("Buzz Event", {"route": "test-route"}) + test_event.is_published = True + test_event.save() test_ticket_type = frappe.get_doc( { @@ -991,6 +995,7 @@ def test_process_booking_with_empty_utm_parameters(self): # Disable tax at event level test_event.apply_tax = False + test_event.is_published = True test_event.save() attendees = [ diff --git a/buzz/ticketing/doctype/event_booking/test_guest_booking.py b/buzz/ticketing/doctype/event_booking/test_guest_booking.py index e4e1d3b2..899c2a9d 100644 --- a/buzz/ticketing/doctype/event_booking/test_guest_booking.py +++ b/buzz/ticketing/doctype/event_booking/test_guest_booking.py @@ -20,6 +20,7 @@ def setUp(self): self.original_verification = self.test_event.guest_verification_method self.test_event.allow_guest_booking = True self.test_event.guest_verification_method = "None" + self.test_event.is_published = True self.test_event.save() self.ticket_type = str(self._get_or_create_free_ticket_type()) @@ -28,6 +29,7 @@ def tearDown(self): self.test_event.reload() self.test_event.allow_guest_booking = self.original_allow_guest self.test_event.guest_verification_method = self.original_verification + self.test_event.is_published = False self.test_event.save() # --- helpers --- diff --git a/buzz/ticketing/notification/ticket_email_notification/ticket_email_notification.py b/buzz/ticketing/notification/ticket_email_notification/ticket_email_notification.py new file mode 100644 index 00000000..1d652b08 --- /dev/null +++ b/buzz/ticketing/notification/ticket_email_notification/ticket_email_notification.py @@ -0,0 +1 @@ +# Ticket Email Notification