Try mocking time.sleep for all tests

This commit is contained in:
Seth Schoen
2018-10-16 05:49:45 -07:00
parent 97c89969af
commit 9c82519d74
+3 -1
View File
@@ -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: