From 680e8810672da83d6ddb06a6b8f8a852df181efa Mon Sep 17 00:00:00 2001 From: Adrien Ferrand Date: Mon, 14 Aug 2023 22:23:09 +0200 Subject: [PATCH] Some coverage ignores --- certbot/certbot/plugins/dns_test_common_lexicon.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/certbot/certbot/plugins/dns_test_common_lexicon.py b/certbot/certbot/plugins/dns_test_common_lexicon.py index c05474448..d47506028 100644 --- a/certbot/certbot/plugins/dns_test_common_lexicon.py +++ b/certbot/certbot/plugins/dns_test_common_lexicon.py @@ -17,7 +17,7 @@ from certbot.plugins.dns_common_lexicon import LexiconClient from certbot.plugins.dns_test_common import _AuthenticatorCallableTestCase from certbot.tests import util as test_util -if TYPE_CHECKING: +if TYPE_CHECKING: # pragma: no cover from typing_extensions import Protocol else: Protocol = object @@ -68,7 +68,7 @@ class _LexiconAwareTestCase(Protocol): class BaseLexiconAuthenticatorTest(dns_test_common.BaseAuthenticatorTest): - def __init_subclass__(cls, **kwargs: Any) -> None: + def __init_subclass__(cls, **kwargs: Any) -> None: # pragma: no cover super().__init_subclass__(**kwargs) warnings.warn("BaseLexiconAuthenticatorTest class is deprecated and will be " "removed in the next Certbot major release. Please use " @@ -101,7 +101,7 @@ class BaseLexiconClientTest: record_name = record_prefix + "." + DOMAIN record_content = "bar" - def __init_subclass__(cls, **kwargs: Any) -> None: + def __init_subclass__(cls, **kwargs: Any) -> None: # pragma: no cover super().__init_subclass__(**kwargs) warnings.warn("BaseLexiconClientTest class is deprecated and will be removed in " "the next Certbot major release. Please use LexiconDNSAuthenticator instead.",