Hi guys, I’d like to know if there’s any way to simulate a retry on a call in an http request?
Hello,
You could mock the requests
response and use many different values with the unittest.mock
module’s side_effect
property. Check an example of mocking multiple values below: