From 53919157d11056fb10cb20bfd95aab8e3c864fde Mon Sep 17 00:00:00 2001 From: cfdaily Date: Mon, 18 May 2026 16:16:31 +0800 Subject: [PATCH] auto-sync: 2026-05-18 16:16:31 --- tests/test_e2e_v27.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_e2e_v27.py b/tests/test_e2e_v27.py index e2759a5..f30427d 100644 --- a/tests/test_e2e_v27.py +++ b/tests/test_e2e_v27.py @@ -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()