Bind Mail effects to stable delivery attempts

This commit is contained in:
2026-08-03 05:00:30 +02:00
parent 50ce8b0acb
commit 5df26be074
3 changed files with 26 additions and 1 deletions
+4 -1
View File
@@ -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"),