mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
Fixed test
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user