Skip to content

Commit

Permalink
added test for sending notitication
Browse files Browse the repository at this point in the history
  • Loading branch information
Jin-Sun-tts committed Dec 2, 2024
1 parent 5132a56 commit b608996
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion tests/integration/harvest/test_harvest_full_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,6 @@ def test_harvest_send_notification_failure(
mock_smtp.side_effect = Exception("SMTP connection failed")
error_message = harvest_source.send_notification_emails(results)

assert mock_smtp.called, "Mock SMTP was not called!"
assert mock_smtp.side_effect is not None, "Mock SMTP side_effect was not set!"

assert error_message == "Error preparing or sending notification emails"
Expand Down

0 comments on commit b608996

Please sign in to comment.