Cleanup tests

This commit is contained in:
Mathias Petermann 2020-11-11 12:21:06 +01:00
parent 453826c59c
commit 9fd3440cf6
2 changed files with 1 additions and 4 deletions

View File

@ -62,7 +62,6 @@ class TestAcmeDns(unittest.TestCase):
mock_authz = Mock()
mock_authz.body.resolved_combinations = []
mock_entry = MagicMock()
from acme import challenges
mock_entry.chall = TestAcmeDns.test_complete_dns_challenge_fail
mock_authz.body.resolved_combinations.append(mock_entry)

View File

@ -59,11 +59,9 @@ class TestAcmeHandler(unittest.TestCase):
self.assertTrue(self.acme.reuse_account(mock_authority))
@patch("lemur.plugins.lemur_acme.acme_handlers.current_app")
def test_reuse_account_no_configuration(self, mock_current_app):
def test_reuse_account_no_configuration(self):
mock_authority = Mock()
mock_authority.options = '[{"name": "mock_name", "value": "mock_value"}]'
mock_current_app.config = {}
self.assertFalse(self.acme.reuse_account(mock_authority))