moo.sdk.tests.test_context

Tests for moo.sdk.context helpers.

Functions

test_invoked_verb_name_handles_empty_words(...)

Parser exists but words is empty (defensive): falls back to default.

test_invoked_verb_name_lowercases(t_init, ...)

Mixed-case input is normalised to lowercase.

test_invoked_verb_name_returns_default_without_parser(...)

No active parser (async/scheduled verb invocation): falls back to default.

test_invoked_verb_name_returns_typed_name(...)

When a parser is active, returns the lowercased first word the player typed — even when they typed it in mixed case.