mirror of
https://github.com/certbot/certbot.git
synced 2026-07-30 18:04:31 +02:00
Made cover and lint happy
This commit is contained in:
+1
-1
@@ -272,7 +272,7 @@ def _report_new_cert(cert_path):
|
||||
reporter_util = zope.component.getUtility(interfaces.IReporter)
|
||||
reporter_util.add_message("Congratulations! Your certificate has been "
|
||||
"saved at {0}.".format(cert_path),
|
||||
reporter.MEDIUM_PRIORITY)
|
||||
reporter_util.MEDIUM_PRIORITY)
|
||||
|
||||
|
||||
def _auth_from_domains(le_client, config, domains, plugins):
|
||||
|
||||
@@ -78,12 +78,12 @@ class ReporterTest(unittest.TestCase):
|
||||
output = sys.stdout.getvalue()
|
||||
self.assertTrue("IMPORTANT NOTES:" in output)
|
||||
self.assertTrue("High" in output)
|
||||
self.assertTrue("Med" in output)
|
||||
self.assertTrue("Med" not in output)
|
||||
self.assertTrue("Low" not in output)
|
||||
|
||||
def _add_messages(self):
|
||||
self.reporter.add_message("High", self.reporter.HIGH_PRIORITY)
|
||||
self.reporter.add_message("Med", self.reporter.MEDIUM_PRIORITY)
|
||||
self.reporter.add_message("Med", self.reporter.MEDIUM_PRIORITY, False)
|
||||
self.reporter.add_message("Low", self.reporter.LOW_PRIORITY, False)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user