Reload the user for current values.

This might not be needed, but it helped at one point.
This commit is contained in:
Elrond 2012-02-26 15:14:50 +01:00
parent 37ef4c66b1
commit f4162cb640

View File

@ -269,6 +269,7 @@ def test_register_views(test_app):
## Try using an expired token to change password, shouldn't work
template.clear_test_template_context()
new_user = mg_globals.database.User.find_one({'username': 'happygirl'})
real_token_expiration = new_user.fp_token_expire
new_user.fp_token_expire = datetime.datetime.now()
new_user.save()