⬅︎ Back to Best practice with retries with requests
How do you test reliably that the retries in the call works as expected?
I think all bets are off when you use one of those request/response mocking libs.
use something like mockoon (https://mockoon.com) and set up HTTP routes for 200 OK and a couple statuses in your status_forcelist. turn on random responses and you'll see it working in the logs.
Comment
How do you test reliably that the retries in the call works as expected?
Parent comment
I think all bets are off when you use one of those request/response mocking libs.
Replies
use something like mockoon (https://mockoon.com) and set up HTTP routes for 200 OK and a couple statuses in your status_forcelist. turn on random responses and you'll see it working in the logs.