moo.core.tests.test_tasks

Functions

test_basic_rollback(t_init, t_wizard)

test_parse_command_no_events_leaves_cache_empty(...)

parse_command writes an empty list when the verb publishes no events.

test_parse_command_writes_events_to_cache(...)

parse_command stashes published event types under moo:task_events:{task_id} in the cache.

test_publish_to_player_records_event_when_context_tracks(...)

_publish_to_player appends the event type to published_events when the context opts in.

test_publish_to_player_skips_recording_when_context_untracked(...)

_publish_to_player does not raise when published_events is None (default).

test_publish_to_player_uses_producer_pool_only(...)

_publish_to_player must allocate a channel only through the producer pool — never via a separate app.default_connection().channel().

test_simple_async_verb(t_init, t_wizard, caplog)

test_simple_async_verb_callback(t_init, ...)