From fc97123c30aef29f08a13668a5d0a3919ac2688b Mon Sep 17 00:00:00 2001 From: Piotr Banaszkiewicz Date: Sat, 14 Oct 2023 23:37:05 +0200 Subject: [PATCH] [#2530] Fix copy-paste issue in mock.patch --- .../test_instructor_training_approaching_receiver.py | 3 ++- .../test_instructor_training_approaching_remove_receiver.py | 6 ++++-- .../test_instructor_training_approaching_update_receiver.py | 3 ++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/amy/emails/tests/actions/test_instructor_training_approaching_receiver.py b/amy/emails/tests/actions/test_instructor_training_approaching_receiver.py index faf094500..3452829a5 100644 --- a/amy/emails/tests/actions/test_instructor_training_approaching_receiver.py +++ b/amy/emails/tests/actions/test_instructor_training_approaching_receiver.py @@ -122,7 +122,8 @@ def test_email_scheduled( # Act with patch( - "emails.actions.persons_merged.EmailController.schedule_email" + "emails.actions.instructor_training_approaching" + ".EmailController.schedule_email" ) as mock_schedule_email: instructor_training_approaching_signal.send( sender=self.event, diff --git a/amy/emails/tests/actions/test_instructor_training_approaching_remove_receiver.py b/amy/emails/tests/actions/test_instructor_training_approaching_remove_receiver.py index 65d6e8813..90ec31853 100644 --- a/amy/emails/tests/actions/test_instructor_training_approaching_remove_receiver.py +++ b/amy/emails/tests/actions/test_instructor_training_approaching_remove_receiver.py @@ -140,7 +140,8 @@ def test_email_cancelled( # Act with patch( - "emails.actions.persons_merged.EmailController.cancel_email" + "emails.actions.instructor_training_approaching" + ".EmailController.cancel_email" ) as mock_cancel_email: instructor_training_approaching_remove_signal.send( sender=self.event, @@ -185,7 +186,8 @@ def test_multiple_emails_cancelled( # Act with patch( - "emails.actions.persons_merged.EmailController.cancel_email" + "emails.actions.instructor_training_approaching" + ".EmailController.cancel_email" ) as mock_cancel_email: instructor_training_approaching_remove_signal.send( sender=self.event, diff --git a/amy/emails/tests/actions/test_instructor_training_approaching_update_receiver.py b/amy/emails/tests/actions/test_instructor_training_approaching_update_receiver.py index 60db27f85..cae83d7c5 100644 --- a/amy/emails/tests/actions/test_instructor_training_approaching_update_receiver.py +++ b/amy/emails/tests/actions/test_instructor_training_approaching_update_receiver.py @@ -148,7 +148,8 @@ def test_email_updated( # Act with patch( - "emails.actions.persons_merged.EmailController.update_scheduled_email" + "emails.actions.instructor_training_approaching" + ".EmailController.update_scheduled_email" ) as mock_update_scheduled_email: instructor_training_approaching_update_signal.send( sender=self.event,