Skip to content

Commit

Permalink
Fixed tests relying on django-q
Browse files Browse the repository at this point in the history
  • Loading branch information
adamspd committed May 24, 2024
1 parent 4b76c59 commit 2e31549
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions appointment/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1239,6 +1239,7 @@ def setUp(self):

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

0 comments on commit 2e31549

Please sign in to comment.