diff options
author | Caleb Forbes Davis V <caldavis@gmail.com> | 2011-07-04 20:04:00 -0500 |
---|---|---|
committer | Caleb Forbes Davis V <caldavis@gmail.com> | 2011-07-04 20:04:00 -0500 |
commit | e054ae9b3dfc518a34eb4a7395b177f0e8a31469 (patch) | |
tree | 274f1a4fc3572277424dfd60d2b6df021f72347c /mediagoblin/tests/test_auth.py | |
parent | cfe46f3e68b62bba0cfb943dc45e9b88c3f7c25e (diff) | |
download | mediagoblin-e054ae9b3dfc518a34eb4a7395b177f0e8a31469.tar.lz mediagoblin-e054ae9b3dfc518a34eb4a7395b177f0e8a31469.tar.xz mediagoblin-e054ae9b3dfc518a34eb4a7395b177f0e8a31469.zip |
allows using messaging instead of verify_email.html to pass tests
* re-instated verification_successful flag
* modified test_auth to verify nav to user_pages/user.html template
Diffstat (limited to 'mediagoblin/tests/test_auth.py')
-rw-r--r-- | mediagoblin/tests/test_auth.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mediagoblin/tests/test_auth.py b/mediagoblin/tests/test_auth.py index 3a13cbb1..ad9dd35b 100644 --- a/mediagoblin/tests/test_auth.py +++ b/mediagoblin/tests/test_auth.py @@ -189,7 +189,7 @@ def test_register_views(test_app): "/auth/verify_email/?userid=%s&token=total_bs" % unicode( new_user['_id'])) context = util.TEMPLATE_TEST_CONTEXT[ - 'mediagoblin/auth/verify_email.html'] + 'mediagoblin/user_pages/user.html'] assert context['verification_successful'] == False new_user = mg_globals.database.User.find_one( {'username': 'happygirl'}) @@ -201,7 +201,7 @@ def test_register_views(test_app): util.clear_test_template_context() test_app.get("%s?%s" % (path, get_params)) context = util.TEMPLATE_TEST_CONTEXT[ - 'mediagoblin/auth/verify_email.html'] + 'mediagoblin/user_pages/user.html'] assert context['verification_successful'] == True new_user = mg_globals.database.User.find_one( {'username': 'happygirl'}) |