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()