Redirect to the user's profile after registration

- Updated the view
 - Updated the tests
 - Fixed a weirdness in the registration view where the 'user'
   variable used to be called 'entry'
This commit is contained in:
Christopher Allan Webber
2011-07-29 08:22:26 -05:00
parent 7074304c91
commit 0bc036209d
3 changed files with 16 additions and 12 deletions

View File

@@ -153,9 +153,9 @@ def test_register_views(test_app):
## Did we redirect to the proper page? Use the right template?
assert_equal(
urlparse.urlsplit(response.location)[2],
'/auth/register/success/')
'/u/happygirl/')
assert util.TEMPLATE_TEST_CONTEXT.has_key(
'mediagoblin/auth/register_success.html')
'mediagoblin/user_pages/user.html')
## Make sure user is in place
new_user = mg_globals.database.User.find_one(