From 9e7019e6a2c15cc96d6d02b20184a8a6b15d87ef Mon Sep 17 00:00:00 2001 From: Antoine Nguyen Date: Wed, 22 Jul 2015 10:44:27 +0200 Subject: [PATCH] Test updated --- modoboa/core/dev_settings.py | 2 +- modoboa/core/tests.py | 11 +++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/modoboa/core/dev_settings.py b/modoboa/core/dev_settings.py index 936302132..9b3150c18 100644 --- a/modoboa/core/dev_settings.py +++ b/modoboa/core/dev_settings.py @@ -8,7 +8,7 @@ BOWER_COMPONENTS_ROOT = os.path.join( BOWER_INSTALLED_APPS = ( "jquery#1.9", "jquery-ui#1.11", - "bootstrap#3.3.1", + "bootstrap#3.3.5", "bootstrap-select#1.6", "d3#3.5.0", "eonasdan-bootstrap-datetimepicker#3.1.3", diff --git a/modoboa/core/tests.py b/modoboa/core/tests.py index ee070a693..02be721da 100644 --- a/modoboa/core/tests.py +++ b/modoboa/core/tests.py @@ -36,9 +36,16 @@ class ProfileTestCase(ModoTestCase): self.ajax_post( reverse("core:user_profile"), {"oldpassword": "toto", - "newpassword": "tutu", "confirmation": "tutu"} + "newpassword": "tutu", "confirmation": "tutu"}, + status=400 + ) + + self.ajax_post( + reverse("core:user_profile"), + {"oldpassword": "toto", + "newpassword": "Toto1234", "confirmation": "Toto1234"} ) self.clt.logout() self.assertTrue( - self.clt.login(username="user@test.com", password="tutu") + self.clt.login(username="user@test.com", password="Toto1234") )