From 53151133afdbae76fdef0f319e2fea8d3c5c0b08 Mon Sep 17 00:00:00 2001 From: Alex Zorin Date: Sat, 23 Jan 2021 22:07:50 +1100 Subject: [PATCH] exclude static auth hints from coverage --- certbot-apache/certbot_apache/_internal/configurator.py | 2 +- certbot-nginx/certbot_nginx/_internal/configurator.py | 2 +- certbot/certbot/_internal/plugins/webroot.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/certbot-apache/certbot_apache/_internal/configurator.py b/certbot-apache/certbot_apache/_internal/configurator.py index c1d2c7417..f5e029fbc 100644 --- a/certbot-apache/certbot_apache/_internal/configurator.py +++ b/certbot-apache/certbot_apache/_internal/configurator.py @@ -2470,7 +2470,7 @@ class ApacheConfigurator(common.Installer): version=".".join(str(i) for i in self.version)) ) - def auth_hint(self, failed_achalls): + def auth_hint(self, failed_achalls): # pragma: no cover return ("The Certificate Authority failed to verify the temporary Apache configuration " "changes made by the --apache plugin. Ensure that the above domains point to " "this Apache server and that it is accessible from the internet.") diff --git a/certbot-nginx/certbot_nginx/_internal/configurator.py b/certbot-nginx/certbot_nginx/_internal/configurator.py index e0f72f2d4..d095ff31e 100644 --- a/certbot-nginx/certbot_nginx/_internal/configurator.py +++ b/certbot-nginx/certbot_nginx/_internal/configurator.py @@ -1029,7 +1029,7 @@ class NginxConfigurator(common.Installer): version=".".join(str(i) for i in self.version)) ) - def auth_hint(self, failed_achalls): + def auth_hint(self, failed_achalls): # pragma: no cover return ( "The Certificate Authority failed to verify the temporary nginx configuration changes " "made by the --nginx plugin. Ensure the above domains point to this nginx server and " diff --git a/certbot/certbot/_internal/plugins/webroot.py b/certbot/certbot/_internal/plugins/webroot.py index 0f5ab5565..cbb3cacfc 100644 --- a/certbot/certbot/_internal/plugins/webroot.py +++ b/certbot/certbot/_internal/plugins/webroot.py @@ -62,7 +62,7 @@ to serve all files under specified web root ({0}).""" "file, it needs to be on a single line, like: webroot-map = " '{"example.com":"/var/www"}.') - def auth_hint(self, failed_achalls): + def auth_hint(self, failed_achalls): # pragma: no cover return ("The Certificate Authority failed to download the temporary challenge files " "created by the --webroot plugin. Ensure that the above domains serve their " "content from the provided --webroot-path/-w and that files created there "