lundi 31 août 2020

Python unit tests for tenacity based retry logic

I am wondering if there is a way to test the retry logic provided by tenacity; e.g. I'd like to test a decorated method is successful only on a retry (or a given number of retries). In other words, is there a pattern for mocking failures for tenacity?

Aucun commentaire:

Enregistrer un commentaire