moo.shell.tests.test_signup_view

Tests for the custom SignupView that allows already-authenticated users to re-register.

Functions

test_signup_get_anonymous(client)

An anonymous user can reach the signup page.

test_signup_get_authenticated_shows_form(...)

An authenticated user is logged out and shown the signup form rather than redirected.

test_signup_post_authenticated_creates_new_account(...)

Submitting signup while authenticated creates the new Player and avatar.

test_signup_post_authenticated_logs_out_old_user(...)

Submitting signup while authenticated ends the old session.