Skip to content

Unhandled Event

  • Back to Testing Overview

    Return to the Testing overview page with all topics.

    Back to Overview

The event type is on unhandled. send does not raise. The handler is not on invocations.

See Event Flow.

await harness.mediator.send(CreateOrder(sku="book"))
assert harness.unhandled.contains(OrderCreated)
harness.invocations.assert_not_entered(AuditHandler)

Library example: examples/testing/domain_and_notification.py.