moo.core.tests

Unit and functional tests.

Modules

test_accounts

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

test_audit_log

Tests for the action audit log (spec 200, item L).

test_bootstrap_sync

Tests for the idempotent bootstrap sync system.

test_code

Comprehensive tests for moo/core/code.py

test_directions

test_escape

Tests for the escape guarantee + connectivity guard (spec 200, item M).

test_exceptions

Tests for exception classes in moo/core/exceptions.py.

test_external_key

Tests for indexed external-key get-or-create (spec 200, item B).

test_model_acl

Tests for moo/core/models/acl.py — Permission, Access, AccessibleMixin.

test_model_auth

Tests for moo/core/models/auth.py — Player.

test_model_object

Tests for moo/core/models/object.py — Object, Relationship, Alias, AncestorCache.

test_model_property

Tests for moo/core/models/property.py — Property.

test_model_verb

Tests for moo/core/models/verb.py — Verb, VerbName, Preposition, PrepositionName, PrepositionSpecifier, Repository.

test_moderation

Tests for the suspend/ban sanction primitives (spec 200, item H).

test_moojson

Tests for moo/core/moojson.py — JSON encoding/decoding of MOO types.

test_multi_universe

Tests for multi-universe support via Django Sites.

test_object_lifecycle

test_onboarding

Tests for the guest tier (I) and registration gate (J) — spec 200.

test_parser

test_provenance

Tests for always-on provenance and tagged output (spec 200, item E).

test_rate_limit

Tests for the per-account broadcast flood limit (spec 200, item F).

test_security_attribute_coverage

Sentinel tests: every public attribute on the sandbox-exposed models must be classified for read-ACL enforcement.

test_security_builtins

Security tests: restricted builtin functions.

test_security_context

Security tests: ContextManager state and invoke() guards.

test_security_imports

Security tests: import blocking and allowed-module return-value surfaces.

test_security_model_acl

Security tests: Access (ACL) and Repository model permission checks.

test_security_model_mail

Security tests: Message and MessageRecipient model permission checks.

test_security_model_object

Security tests: Object model permission checks.

test_security_model_property

Security tests: Property model permission checks.

test_security_model_verb

Security tests: Verb / VerbName / Alias model permission checks.

test_security_queryset

Security tests: QuerySet / RelatedManager access controls.

test_security_queryset_wizard_guard

Security tests: queryset-level wizard guards.

test_security_random

Security audit: random module

test_security_sandbox

Security tests: RestrictedPython write/read guards and string formatting.

test_security_sandbox_relations

Security tests: sandbox traversal across Django relations.

test_soft_delete

Tests for non-destructive recovery: soft-delete / restore (spec 200, item K).

test_tasks

test_tick_budget

Tests for the per-task loop/tick budget (spec 200, item N).

utils

Shared helpers for moo.core tests.