auto-sync: 2026-05-18 16:16:31

This commit is contained in:
cfdaily
2026-05-18 16:16:31 +08:00
parent 84466aba48
commit 53919157d1
+3
View File
@@ -539,6 +539,9 @@ class TestE8MailTab:
self.mail_ids = []
def _send_mail(self, client, **kwargs):
# Fix: 'from' is a Python keyword, callers use 'from_'
if 'from_' in kwargs:
kwargs['from'] = kwargs.pop('from_')
resp = client.post("/api/mail", json=kwargs)
assert resp.status_code == 200
data = resp.json()