diff options
author | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2012-02-26 15:14:50 +0100 |
---|---|---|
committer | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2012-03-26 20:31:36 +0200 |
commit | f4162cb640646cb8f67809e0f70585c603452ff2 (patch) | |
tree | 9e7da8fc71feaac2022fceedce9a9520c401d9b1 /mediagoblin/tests/test_auth.py | |
parent | 37ef4c66b1bc5841b68bf25f06feb7d863ff89f5 (diff) | |
download | mediagoblin-f4162cb640646cb8f67809e0f70585c603452ff2.tar.lz mediagoblin-f4162cb640646cb8f67809e0f70585c603452ff2.tar.xz mediagoblin-f4162cb640646cb8f67809e0f70585c603452ff2.zip |
Reload the user for current values.
This might not be needed, but it helped at one point.
Diffstat (limited to 'mediagoblin/tests/test_auth.py')
-rw-r--r-- | mediagoblin/tests/test_auth.py | 1 |
1 files changed, 1 insertions, 0 deletions
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() |