diff --git a/lemur/plugins/lemur_acme/plugin.py b/lemur/plugins/lemur_acme/plugin.py index caa4ca45..1604fcdc 100644 --- a/lemur/plugins/lemur_acme/plugin.py +++ b/lemur/plugins/lemur_acme/plugin.py @@ -500,8 +500,9 @@ class ACMEIssuerPlugin(IssuerPlugin): return None, None, dns_authorization.id authorizations = self.acme.get_authorizations(acme_client, account_number, domains, dns_provider_plugin, - dns_provider_options) - self.acme.finalize_authorizations(acme_client, account_number, dns_provider_plugin, authorizations, dns_provider_options) + dns_provider_options) + self.acme.finalize_authorizations(acme_client, account_number, dns_provider_plugin, authorizations, + dns_provider_options) pem_certificate, pem_certificate_chain = self.acme.request_certificate(acme_client, authorizations, csr) # TODO add external ID (if possible) return pem_certificate, pem_certificate_chain, None diff --git a/lemur/plugins/lemur_acme/tests/conftest.py b/lemur/plugins/lemur_acme/tests/conftest.py index 0e1cd89f..8b137891 100644 --- a/lemur/plugins/lemur_acme/tests/conftest.py +++ b/lemur/plugins/lemur_acme/tests/conftest.py @@ -1 +1 @@ -from lemur.tests.conftest import * # noqa + diff --git a/lemur/plugins/lemur_acme/tests/test_acme.py b/lemur/plugins/lemur_acme/tests/test_acme.py index a9b82698..0c406627 100644 --- a/lemur/plugins/lemur_acme/tests/test_acme.py +++ b/lemur/plugins/lemur_acme/tests/test_acme.py @@ -15,7 +15,8 @@ class TestAcme(unittest.TestCase): mock_dns_provider.name = "cloudflare" mock_dns_provider.credentials = "{}" mock_dns_provider.provider_type = "cloudflare" - self.acme.dns_providers_for_domain = {"www.test.com": [mock_dns_provider], "test.fakedomain.net": [mock_dns_provider]} + self.acme.dns_providers_for_domain = {"www.test.com": [mock_dns_provider], + "test.fakedomain.net": [mock_dns_provider]} @patch('lemur.plugins.lemur_acme.plugin.len', return_value=1) def test_find_dns_challenge(self, mock_len): @@ -221,7 +222,8 @@ class TestAcme(unittest.TestCase): @patch('lemur.plugins.lemur_acme.dyn.current_app') @patch('lemur.plugins.lemur_acme.cloudflare.current_app') @patch('lemur.plugins.lemur_acme.plugin.dns_provider_service') - def test_get_dns_provider(self, mock_dns_provider_service, mock_current_app_cloudflare, mock_current_app_dyn, mock_current_app): + def test_get_dns_provider(self, mock_dns_provider_service, mock_current_app_cloudflare, mock_current_app_dyn, + mock_current_app): provider = plugin.ACMEIssuerPlugin() route53 = provider.get_dns_provider("route53") assert route53