Quantcast
Channel: Active questions tagged retry-logic - Stack Overflow
Viewing all articles
Browse latest Browse all 950

In python How to unit test a tenacity library retry

$
0
0

I have a function with tenacity library retry

@retry(stop=stop_after_attempt(3))def func():    pass

How do I unit test that the retry will execute 3 times?Thanks


Viewing all articles
Browse latest Browse all 950

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>