mirror of
https://github.com/certbot/certbot.git
synced 2026-07-31 18:34:41 +02:00
Try mocking time.sleep for all tests
This commit is contained in:
@@ -68,7 +68,8 @@ class RunTest(test_util.ConfigTestCase):
|
||||
mock.patch('certbot.main._init_le_client'),
|
||||
mock.patch('certbot.main._suggest_donation_if_appropriate'),
|
||||
mock.patch('certbot.main._report_new_cert'),
|
||||
mock.patch('certbot.main._find_cert')]
|
||||
mock.patch('certbot.main._find_cert'),
|
||||
mock.patch('certbot.time.sleep')]
|
||||
|
||||
self.mock_auth = self.patches[0].start()
|
||||
self.mock_success_installation = self.patches[1].start()
|
||||
@@ -77,6 +78,7 @@ class RunTest(test_util.ConfigTestCase):
|
||||
self.mock_suggest_donation = self.patches[4].start()
|
||||
self.mock_report_cert = self.patches[5].start()
|
||||
self.mock_find_cert = self.patches[6].start()
|
||||
self.mock_sleep = self.patches[7].start()
|
||||
|
||||
def tearDown(self):
|
||||
for patch in self.patches:
|
||||
|
||||
Reference in New Issue
Block a user