Skip to content

Commit a785241

Browse files
committed
Trying to make the test fail
1 parent b6f7b00 commit a785241

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/app/celery/test_tasks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1726,8 +1726,8 @@ def test_save_email_twice_does_not_send_duplicate_and_does_not_put_in_retry_queu
17261726
row_number=1,
17271727
)
17281728
mock_task = mock_celery_task(provider_tasks.deliver_email)
1729-
retry = mocker.patch("app.celery.tasks.save_email.retry", side_effect=Exception())
1730-
1729+
mocker.patch("app.celery.tasks.persist_notification", side_effect=SQLAlchemyError("Duplicate notification"))
1730+
retry = mocker.patch("app.celery.tasks.save_email.retry", side_effect=Retry)
17311731
notification_id = sample_email_notification.id
17321732

17331733
save_email(

0 commit comments

Comments
 (0)