From 74c2e482a8bac26024560c64bd018f6541f6ac0c Mon Sep 17 00:00:00 2001 From: Antoine Nguyen Date: Sat, 26 Jul 2025 19:08:32 +0200 Subject: [PATCH] Fixed test --- modoboa/core/api/v2/tests.py | 2 +- modoboa/webmail/lib/sendmail.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modoboa/core/api/v2/tests.py b/modoboa/core/api/v2/tests.py index 39e5f6267..50b208106 100644 --- a/modoboa/core/api/v2/tests.py +++ b/modoboa/core/api/v2/tests.py @@ -558,7 +558,7 @@ class ThemeAPITestCase(ModoAPITestCase): response = self.client.get(url) self.assertEqual(response.status_code, 200) theme = response.json() - self.assertEqual(theme["theme_primary_color"], "#FF00000") + self.assertEqual(theme["theme_primary_color"], "#FF0000") class NewsFeedAPIViewTestCase(ModoAPITestCase): diff --git a/modoboa/webmail/lib/sendmail.py b/modoboa/webmail/lib/sendmail.py index c547204d0..e80995d22 100644 --- a/modoboa/webmail/lib/sendmail.py +++ b/modoboa/webmail/lib/sendmail.py @@ -134,7 +134,7 @@ def send_mail(request, attributes: dict, attachments: list) -> tuple[bool, str | { "backend": "modoboa.lib.smtp_backend.OAuthBearerEmailBackend", "username": request.user.email, - "password": request.auth, + "password": str(request.auth), } ) else: