feat: track duty email confirmations and add throttled account email tests

This commit is contained in:
2026-11-06 15:07:48 +08:00
parent 867443163a
commit 0a7a641430
11 changed files with 352 additions and 16 deletions
+1
View File
@@ -81,6 +81,7 @@ class DutyTests(unittest.IsolatedAsyncioTestCase):
import sqlite3
with closing(sqlite3.connect(self.state)) as db:
db.execute("UPDATE deliveries SET updated=0")
db.execute("UPDATE duty_receipts SET last_attempt=0")
db.commit()
result = await send_due(self.schedule, self.now, self.accounts[:1], send, self.state)
self.assertEqual(result["sent"], 1)