Fix Unit Tests for new password changing
This commit is contained in:
parent
49af00e491
commit
b48abba303
@ -34,12 +34,10 @@ def test_change_password(test_app):
|
|||||||
# test that the password can be changed
|
# test that the password can be changed
|
||||||
# template.clear_test_template_context()
|
# template.clear_test_template_context()
|
||||||
test_app.post(
|
test_app.post(
|
||||||
'/edit/profile/', {
|
'/edit/account/', {
|
||||||
'bio': u'',
|
|
||||||
'url': u'',
|
|
||||||
'old_password': 'toast',
|
'old_password': 'toast',
|
||||||
'new_password': '123456',
|
'new_password': '123456',
|
||||||
'confirm_password': '123456'})
|
})
|
||||||
|
|
||||||
# test_user has to be fetched again in order to have the current values
|
# test_user has to be fetched again in order to have the current values
|
||||||
test_user = mg_globals.database.User.one({'username': 'chris'})
|
test_user = mg_globals.database.User.one({'username': 'chris'})
|
||||||
@ -50,12 +48,10 @@ def test_change_password(test_app):
|
|||||||
# is wrong
|
# is wrong
|
||||||
# template.clear_test_template_context()
|
# template.clear_test_template_context()
|
||||||
test_app.post(
|
test_app.post(
|
||||||
'/edit/profile/', {
|
'/edit/account/', {
|
||||||
'bio': u'',
|
|
||||||
'url': u'',
|
|
||||||
'old_password': 'toast',
|
'old_password': 'toast',
|
||||||
'new_password': '098765',
|
'new_password': '098765',
|
||||||
'confirm_password': '098765'})
|
})
|
||||||
|
|
||||||
test_user = mg_globals.database.User.one({'username': 'chris'})
|
test_user = mg_globals.database.User.one({'username': 'chris'})
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user