Test updated

This commit is contained in:
Antoine Nguyen
2015-07-22 10:44:27 +02:00
parent 066c10b5b1
commit 9e7019e6a2
2 changed files with 10 additions and 3 deletions
+1 -1
View File
@@ -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",
+9 -2
View File
@@ -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")
)