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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user