Пример #1
0
 def test_raises_zero_max_wait_ms(self):
     with self.assertRaises(ValueError):
         retrying.retry(fn=lambda x: x, wait_max_ms=0)
Пример #2
0
 def test_raises_zero_wait_multiplier(self):
     with self.assertRaises(ValueError):
         retrying.retry(fn=lambda x: x, wait_multiplier=0)
Пример #3
0
 def test_raises_non_function_result_filter(self):
     with self.assertRaises(TypeError):
         retrying.retry(fn=lambda x: x, retry_on_result_filter=0)
Пример #4
0
 def test_raises_complex_max_wait_ms(self):
     with self.assertRaises(TypeError):
         retrying.retry(fn=lambda x: x, wait_max_ms=1j)
Пример #5
0
 def test_raises_non_function(self):
     with self.assertRaises(TypeError):
         retrying.retry(fn=0)