Do not depend on letsencrypt_apache in core tests

This commit is contained in:
Jakub Warmuz 2015-05-17 07:52:25 +00:00
parent 6f4212dcf1
commit 3fd4f2a94a
No known key found for this signature in database
GPG key ID: 2A7BAD3A489B52EA
2 changed files with 2 additions and 6 deletions

View file

@ -56,8 +56,7 @@ class DetermineAccountTest(unittest.TestCase):
class RollbackTest(unittest.TestCase):
"""Test the rollback function."""
def setUp(self):
from letsencrypt_apache.configurator import ApacheConfigurator
self.m_install = mock.MagicMock(spec=ApacheConfigurator)
self.m_install = mock.MagicMock()
@classmethod
def _call(cls, checkpoints, side_effect):

View file

@ -12,8 +12,6 @@ from letsencrypt import errors
from letsencrypt import le_util
from letsencrypt.display import util as display_util
from letsencrypt_apache import configurator
class RevokerBase(unittest.TestCase): # pylint: disable=too-few-public-methods
"""Base Class for Revoker Tests."""
@ -60,8 +58,7 @@ class RevokerTest(RevokerBase):
self._store_certs()
self.revoker = Revoker(
mock.MagicMock(spec=configurator.ApacheConfigurator),
self.mock_config)
installer=mock.MagicMock(), config=self.mock_config)
def tearDown(self):
shutil.rmtree(self.backup_dir)