mirror of
https://github.com/certbot/certbot.git
synced 2026-08-01 08:08:00 +02:00
Do not depend on letsencrypt_apache in core tests
This commit is contained in:
@@ -56,8 +56,7 @@ class DetermineAccountTest(unittest.TestCase):
|
|||||||
class RollbackTest(unittest.TestCase):
|
class RollbackTest(unittest.TestCase):
|
||||||
"""Test the rollback function."""
|
"""Test the rollback function."""
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
from letsencrypt_apache.configurator import ApacheConfigurator
|
self.m_install = mock.MagicMock()
|
||||||
self.m_install = mock.MagicMock(spec=ApacheConfigurator)
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def _call(cls, checkpoints, side_effect):
|
def _call(cls, checkpoints, side_effect):
|
||||||
|
|||||||
@@ -12,8 +12,6 @@ from letsencrypt import errors
|
|||||||
from letsencrypt import le_util
|
from letsencrypt import le_util
|
||||||
from letsencrypt.display import util as display_util
|
from letsencrypt.display import util as display_util
|
||||||
|
|
||||||
from letsencrypt_apache import configurator
|
|
||||||
|
|
||||||
|
|
||||||
class RevokerBase(unittest.TestCase): # pylint: disable=too-few-public-methods
|
class RevokerBase(unittest.TestCase): # pylint: disable=too-few-public-methods
|
||||||
"""Base Class for Revoker Tests."""
|
"""Base Class for Revoker Tests."""
|
||||||
@@ -60,8 +58,7 @@ class RevokerTest(RevokerBase):
|
|||||||
self._store_certs()
|
self._store_certs()
|
||||||
|
|
||||||
self.revoker = Revoker(
|
self.revoker = Revoker(
|
||||||
mock.MagicMock(spec=configurator.ApacheConfigurator),
|
installer=mock.MagicMock(), config=self.mock_config)
|
||||||
self.mock_config)
|
|
||||||
|
|
||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
shutil.rmtree(self.backup_dir)
|
shutil.rmtree(self.backup_dir)
|
||||||
|
|||||||
Reference in New Issue
Block a user