Orchestrata Ultimate › Tests › Reference › kernel › test_pipeline_events_enum
Tests reference — tests/kernel/test_pipeline_events_enum.py
Module of tests/kernel, split out because the directory page would be too large.
Prose pending.
tests/kernel/test_pipeline_events_enum.py
source · 18 tests · 434 lines
Covers: kernel.pipeline_events
| Kind | Name | Line | Description |
|---|---|---|---|
| function | test_enum_members_and_values |
58 | |
| function | test_every_emitter_uses_enum |
87 | No event_type="pipeline...." string literal remains in the module. |
| function | test_every_emit_method_emits_a_valid_enum_member |
102 | Each public emit_* helper produces an event whose type is a |
| function | test_wire_bytes_unchanged |
159 | The enum-typed event, serialized via a bare asdict() call (no |
| function | test_wire_bytes_unchanged_real_redis |
183 | Real-Redis round trip (Rule 2: no mocking) — publish via the bus, |
| function | test_string_consumer_still_matches |
218 | A consumer written against the old stringly-typed contract (plain |
| function | test_emitted_types_match_enum |
242 | The 13 public emit_* helpers together produce exactly |
| function | test_docstring_no_longer_lists_phantom_types |
303 | The 3 documented-but-never-emitted types must be gone from the |
| function | test_to_payload_equals_asdict |
318 | PipelineEvent.to_payload() is the shared serializer — exactly |
| function | test_build_intent_event_default_volk_is_empty |
333 | The bus's emit_intent never sets volk — the factory's default |
| function | test_build_intent_event_accepts_explicit_volk |
342 | The Packet 1e fold for legacy pipeline.start passes volk='U:Cx'. |
| function | test_build_intent_event_truncates_long_intent |
348 | |
| function | test_build_stage_event_uses_stage_as_volk |
353 | STAGE's volk is the stage alias itself — the stage IS the actor. |
| function | test_build_complete_event_default_shape_unchanged |
369 | With no extra, the shape is exactly the pre-existing |
| function | test_build_complete_event_merges_extra_data |
376 | extra merges additional fields on top of {success, reason} — |
| function | test_build_paused_resumed_cancelled_events |
393 | |
| function | test_ui_stream_key_defaults_to_module_constant |
405 | Zero behaviour change when ui_stream_key is unset (design §1b). |
| function | test_ui_stream_key_override_used_by_forward_to_ui |
411 | An injected ui_stream_key redirects the global-stream XADD (the |