Publisher Testing#
If you are working with a Publisher object (either decorator or direct), you can check outgoing messages as well. There are several testing features available:
- In-memory TestClient
- Publishing (including error handling)
- Checking the incoming message body
- Note about mock clearing after the context exits
Base application#
Testing#
- Testing with a real broker
- Waiting for the consumer to be called
Last update:
2023-09-21