moo.core.tests.test_accounts

Tests for the account model (spec 200, item G).

The Player row is the durable account anchor; these cover resolving an avatar to its account and back, the stable account id, and the moderation status helpers the safety set (H/I/J) reads from.

Functions

test_account_for_non_avatar_and_none(t_init, ...)

test_account_for_resolves_avatar(t_init, ...)

test_account_id_for_is_cheap_lookup(t_init, ...)

test_account_id_is_stable_across_rename(...)

The account id is the Player pk — it does not move when the avatar renames.

test_avatars_of_returns_list(t_init, t_wizard)

avatars_of returns a list so the later multi-avatar model needs no caller change.

test_ban_blocks_login(t_init, t_wizard)

test_current_account_from_context(t_init, ...)

test_open_ended_suspension_stays_in_force(...)

test_registered_identity(t_init, t_wizard)

test_status_defaults_to_active(t_init, t_wizard)

test_suspension_in_force_and_expired(t_init, ...)