Skip to content

Commit 2e31549

Browse files
committed
Fixed tests relying on django-q
1 parent 4b76c59 commit 2e31549

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

appointment/tests/test_views.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1239,6 +1239,7 @@ def setUp(self):
12391239

12401240
@patch('appointment.views.create_and_save_appointment')
12411241
@patch('appointment.views.redirect_to_payment_or_thank_you_page')
1242+
@patch('django.conf.settings.USE_DJANGO_Q_FOR_EMAILS', new=False)
12421243
def test_create_appointment_success(self, mock_redirect, mock_create_and_save):
12431244
"""Test successful creation of an appointment and redirection."""
12441245
# Mock the appointment creation to return an Appointment instance

0 commit comments

Comments
 (0)