From 103e1076681ef82b4a2c9e72fe117dd864849a29 Mon Sep 17 00:00:00 2001 From: Mathias Petermann Date: Tue, 27 Oct 2020 11:16:29 +0100 Subject: [PATCH] Fix patches for test_create_certificate --- lemur/plugins/lemur_acme/tests/test_acme_dns.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lemur/plugins/lemur_acme/tests/test_acme_dns.py b/lemur/plugins/lemur_acme/tests/test_acme_dns.py index 383e1268..dd1e0bba 100644 --- a/lemur/plugins/lemur_acme/tests/test_acme_dns.py +++ b/lemur/plugins/lemur_acme/tests/test_acme_dns.py @@ -327,17 +327,21 @@ class TestAcmeDns(unittest.TestCase): @patch("lemur.plugins.lemur_acme.plugin.AcmeHandler.setup_acme_client") @patch("lemur.plugins.lemur_acme.acme_handlers.dns_provider_service") @patch("lemur.plugins.lemur_acme.plugin.current_app") + @patch("lemur.plugins.lemur_acme.acme_handlers.current_app") + @patch("lemur.plugins.lemur_acme.challenge_types.current_app") @patch("lemur.plugins.lemur_acme.plugin.AcmeDnsHandler.get_authorizations") @patch("lemur.plugins.lemur_acme.plugin.AcmeDnsHandler.finalize_authorizations") @patch("lemur.plugins.lemur_acme.plugin.AcmeDnsHandler.request_certificate") - @patch("lemur.plugins.lemur_acme.plugin.authorization_service") + @patch("lemur.plugins.lemur_acme.challenge_types.authorization_service") def test_create_certificate( self, mock_authorization_service, mock_request_certificate, mock_finalize_authorizations, mock_get_authorizations, - mock_current_app, + mock_current_app_c, + mock_current_app_a, + mock_current_app_p, mock_dns_provider_service, mock_acme, ):