From 4d73d91fce5943cb08c666458d8464940b93ed55 Mon Sep 17 00:00:00 2001 From: Antoine Nguyen Date: Sat, 14 Nov 2015 14:59:03 +0100 Subject: [PATCH] Fix unit test. see #766 --- modoboa/core/tests.py | 2 +- modoboa/core/views/auth.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modoboa/core/tests.py b/modoboa/core/tests.py index c64432991..aaeca7d03 100644 --- a/modoboa/core/tests.py +++ b/modoboa/core/tests.py @@ -42,7 +42,7 @@ class ProfileTestCase(ModoTestCase): self.ajax_post( reverse("core:user_profile"), - {"oldpassword": "toto", + {"language": "en", "oldpassword": "toto", "newpassword": "Toto1234", "confirmation": "Toto1234"} ) self.clt.logout() diff --git a/modoboa/core/views/auth.py b/modoboa/core/views/auth.py index 1f173e194..2fe6a4062 100644 --- a/modoboa/core/views/auth.py +++ b/modoboa/core/views/auth.py @@ -9,7 +9,7 @@ from django.utils.translation import ugettext as _ from django.views.decorators.cache import never_cache from modoboa.core.forms import LoginForm -from modoboa.lib import events, parameters +from modoboa.lib import events from modoboa.lib.web_utils import _render_to_string