mirror of
https://github.com/certbot/certbot.git
synced 2026-07-31 10:26:06 +02:00
Skip dns_resolver tests if dnspython is not available.
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user