Bind Mail effects to stable delivery attempts
This commit is contained in:
@@ -181,7 +181,10 @@ class CampaignQueueSelectionTests(unittest.TestCase):
|
||||
)
|
||||
with (
|
||||
patch("govoplan_campaign.backend.sending.jobs.mail_integration", return_value=Mail()),
|
||||
patch("govoplan_campaign.backend.sending.jobs._record_attempt_start", return_value=object()),
|
||||
patch(
|
||||
"govoplan_campaign.backend.sending.jobs._record_attempt_start",
|
||||
return_value=SimpleNamespace(attempt_number=1),
|
||||
),
|
||||
patch(
|
||||
"govoplan_campaign.backend.sending.jobs._record_smtp_send_success",
|
||||
side_effect=OSError("storage unavailable"),
|
||||
|
||||
Reference in New Issue
Block a user