moo.shell.tests.test_signup_form

Tests for the custom allauth SignupForm.

Functions

test_description_optional(t_init, t_wizard)

Empty description is valid and does not override the inherited default.

test_gender_pronouns_male(t_init, t_wizard)

Male gender sets he/him pronouns.

test_gender_pronouns_plural(t_init, t_wizard)

Plural gender sets they/them pronouns.

test_invalid_gender_is_invalid()

An unrecognised gender value fails ChoiceField validation.

test_missing_character_name_is_invalid()

character_name is required.

test_valid_form_creates_player_and_avatar(...)

Valid submission creates a Player linked to a named Object with correct properties.