Latest tenacity release adds some internal changes that broke the mocking of sleep calls in tests.
Fix it by directly mocking time.sleep (was not working previously).