mirror of
https://github.com/certbot/certbot.git
synced 2026-06-08 08:12:15 -04:00
Added requirements for coverage and lint.
This commit is contained in:
parent
dc743fb57c
commit
a9a5e60bc5
3 changed files with 4 additions and 2 deletions
|
|
@ -245,7 +245,7 @@ class DNS01Response(KeyAuthorizationChallengeResponse):
|
|||
from acme import dns_resolver
|
||||
txt_records = dns_resolver.txt_records_for_name(
|
||||
validation_domain_name)
|
||||
except ImportError as error:
|
||||
except ImportError:
|
||||
raise ImportError("Local validation for 'dns-01' challenges "
|
||||
"requires 'dnspython'")
|
||||
exists = validation in txt_records
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ class TxtRecordsForNameTest(unittest.TestCase):
|
|||
mock_dns.return_value = self.create_txt_response('name', ['response'])
|
||||
self.assertEqual(['response'],
|
||||
dns_resolver.txt_records_for_name('name'))
|
||||
|
||||
|
||||
@mock.patch("acme.dns_resolver.dns.resolver.query")
|
||||
def test_txt_records_for_name_with_multiple_responses(self, mock_dns):
|
||||
mock_dns.return_value = self.create_txt_response(
|
||||
|
|
|
|||
|
|
@ -74,7 +74,9 @@ setup(
|
|||
include_package_data=True,
|
||||
install_requires=install_requires,
|
||||
extras_require={
|
||||
'coverage': ['dnspython'],
|
||||
'docs': docs_extras,
|
||||
'lint': ['dnspython'],
|
||||
'testing': testing_extras + ['dnspython'],
|
||||
},
|
||||
entry_points={
|
||||
|
|
|
|||
Loading…
Reference in a new issue