When testing code that is using opnieuw you don't want to sleep, but do want to retry. This changes adds the following syntax for tests:
from opnieuw.test_util import retry_immediately
def some_test():
with retry_immediately():
# perform some tests that code exception handling via retries
When testing code that is using
opnieuw
you don't want to sleep, but do want to retry. This changes adds the following syntax for tests: