From 9fd3440cf6b18ae9adff519babffeadebd5d0274 Mon Sep 17 00:00:00 2001 From: Mathias Petermann Date: Wed, 11 Nov 2020 12:21:06 +0100 Subject: [PATCH] Cleanup tests --- lemur/plugins/lemur_acme/tests/test_acme_dns.py | 1 - lemur/plugins/lemur_acme/tests/test_acme_handler.py | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/lemur/plugins/lemur_acme/tests/test_acme_dns.py b/lemur/plugins/lemur_acme/tests/test_acme_dns.py index b6a5550f..f0e7dbfa 100644 --- a/lemur/plugins/lemur_acme/tests/test_acme_dns.py +++ b/lemur/plugins/lemur_acme/tests/test_acme_dns.py @@ -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) diff --git a/lemur/plugins/lemur_acme/tests/test_acme_handler.py b/lemur/plugins/lemur_acme/tests/test_acme_handler.py index 0ff8c2ff..cfc18c83 100644 --- a/lemur/plugins/lemur_acme/tests/test_acme_handler.py +++ b/lemur/plugins/lemur_acme/tests/test_acme_handler.py @@ -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))