Skip to content

A way to test webhooks locally? #232

Answered by medmunds
RastusBear asked this question in Q&A
Discussion options

You must be logged in to vote

Sorry, that docs page should probably be updated to clarify that's how you test sending, and to add sections for testing delivery tracking and receiving mail. (I think it was written back before Anymail supported webhooks.)

Anymail's Test EmailBackend doesn't have any way to usefully simulate tracking webhooks, so it doesn't try. Webhooks are always called asynchronously by your ESP, which isn't really possible during tests. Also, the specific tracking events will vary depending on who you're emailing and what they do with the message. There's no way for the Test EmailBackend to know which tracking events to send.

Anymail's own tests attempt to thoroughly cover that every ESP webhook even…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@RastusBear
Comment options

Answer selected by RastusBear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants