Orchestrata Ultimate › Tests › Reference › postman › test_event_emitting_postman

Tests reference — tests/postman/test_event_emitting_postman.py

Module of tests/postman, split out because the directory page would be too large.

Prose pending.

tests/postman/test_event_emitting_postman.py

source · 9 tests · 193 lines

Tests for EventEmittingPostman wrapper.

Covers: postman.postman, core.interfaces/ (package), core.packet/ (package), postman/ (package)

Kind Name Line Description
class TestRoute 94
method TestRoute.test_emits_routed_event_on_success 95 route() emits postman.message.routed when delivery succeeds.
method TestRoute.test_no_event_when_no_destination 107 route() does not emit event when packet is missing TO header.
method TestRoute.test_no_event_without_event_bus 115 route() works correctly with no event_bus — no event emission.
class TestAcknowledge 127
method TestAcknowledge.test_emits_delivered_event 128 acknowledge() emits postman.message.delivered.
method TestAcknowledge.test_no_event_without_event_bus 143 acknowledge() works without event_bus.
class TestRetryFailed 156
method TestRetryFailed.test_emits_failed_event_when_not_found 157 retry_failed() emits postman.message.failed when packet not in failed queue.
method TestRetryFailed.test_no_failed_event_on_success 167 retry_failed() does not emit failed event when retry succeeds.
class TestDelegation 185
method TestDelegation.test_getattr_delegates_to_postman 186 getattr forwards attribute access to wrapped Postman.
method TestDelegation.test_missing_attr_raises 190 Accessing non-existent attribute raises AttributeError.