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
This commit is contained in:
Caleb Forbes Davis V
2011-07-04 20:04:00 -05:00
parent cfe46f3e68
commit e054ae9b3d
2 changed files with 6 additions and 3 deletions

View File

@@ -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'})