Skip to content

Outbox Broker Error

  • Back to Testing Overview

    Return to the Testing overview page with all topics.

    Back to Overview

fail_next leaves the row not_produced. published stays empty.

See Event Producing.

harness.broker.fail_next(ConnectionError("down"))
await harness.outbox.produce_available()
assert harness.outbox.not_produced_count == 1
harness.published.assert_empty()

Library example: examples/testing/outbox_inbox.py.