From f4162cb640646cb8f67809e0f70585c603452ff2 Mon Sep 17 00:00:00 2001 From: Elrond Date: Sun, 26 Feb 2012 15:14:50 +0100 Subject: [PATCH] Reload the user for current values. This might not be needed, but it helped at one point. --- mediagoblin/tests/test_auth.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mediagoblin/tests/test_auth.py b/mediagoblin/tests/test_auth.py index 3a33c66c..8f988af3 100644 --- a/mediagoblin/tests/test_auth.py +++ b/mediagoblin/tests/test_auth.py @@ -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() -- 2.25.1