mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-18 05:51:26 +02:00
Test updated
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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")
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user