mirror of
https://github.com/certbot/certbot.git
synced 2026-06-11 01:30:14 -04:00
Fix crypto_util tests
This commit is contained in:
parent
395da0d7d5
commit
8bc260dd64
1 changed files with 6 additions and 0 deletions
|
|
@ -6,7 +6,9 @@ import unittest
|
|||
|
||||
import OpenSSL
|
||||
import mock
|
||||
import zope.component
|
||||
|
||||
from letsencrypt import interfaces
|
||||
from letsencrypt.tests import test_util
|
||||
|
||||
|
||||
|
|
@ -20,6 +22,8 @@ class InitSaveKeyTest(unittest.TestCase):
|
|||
"""Tests for letsencrypt.crypto_util.init_save_key."""
|
||||
def setUp(self):
|
||||
logging.disable(logging.CRITICAL)
|
||||
zope.component.provideUtility(
|
||||
mock.Mock(strict_permissions=True), interfaces.IConfig)
|
||||
self.key_dir = tempfile.mkdtemp('key_dir')
|
||||
|
||||
def tearDown(self):
|
||||
|
|
@ -48,6 +52,8 @@ class InitSaveCSRTest(unittest.TestCase):
|
|||
"""Tests for letsencrypt.crypto_util.init_save_csr."""
|
||||
|
||||
def setUp(self):
|
||||
zope.component.provideUtility(
|
||||
mock.Mock(strict_permissions=True), interfaces.IConfig)
|
||||
self.csr_dir = tempfile.mkdtemp('csr_dir')
|
||||
|
||||
def tearDown(self):
|
||||
|
|
|
|||
Loading…
Reference in a new issue