Handler Errors¶
-
Back to Testing Overview
Return to the Testing overview page with all topics.
send returns the command result. The error is on handler_errors.
See Runtime Processing.
result = await harness.mediator.send(CreateOrder(sku="book"))
assert result.order_id == "1"
assert harness.handler_errors.of(OrderCreated, AuditHandler)
Library example: examples/testing/domain_and_notification.py.