Skip to content

Commit

Permalink
[#2530] Fix copy-paste issue in mock.patch
Browse files Browse the repository at this point in the history
  • Loading branch information
pbanaszkiewicz committed Oct 14, 2023
1 parent 83f3bc2 commit fc97123
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit fc97123

Please sign in to comment.