mirror of
https://github.com/certbot/certbot.git
synced 2026-06-09 00:32:12 -04:00
Skip dns_resolver tests if dnspython is not available.
This commit is contained in:
parent
f2b52bd830
commit
49c40e7a58
1 changed files with 7 additions and 1 deletions
|
|
@ -1,11 +1,17 @@
|
|||
"""Tests for acme.dns_resolver."""
|
||||
import unittest
|
||||
|
||||
import dns
|
||||
import mock
|
||||
|
||||
try:
|
||||
import dns
|
||||
except ImportError:
|
||||
dns = None
|
||||
|
||||
from acme import dns_resolver
|
||||
|
||||
@unittest.skipIf(dns is None,
|
||||
"dnspython is not available, skipping dns_resolver tests")
|
||||
class TxtRecordsForNameTest(unittest.TestCase):
|
||||
|
||||
def create_txt_response(self, name, txt_records):
|
||||
|
|
|
|||
Loading…
Reference in a new issue