mirror of
https://github.com/certbot/certbot.git
synced 2026-08-01 19:02:52 +02:00
pep8 love
This commit is contained in:
+1
-1
@@ -555,7 +555,7 @@ class HelpfulArgumentParser(object):
|
|||||||
|
|
||||||
for i, token in enumerate(args):
|
for i, token in enumerate(args):
|
||||||
if token in VERBS:
|
if token in VERBS:
|
||||||
reordered = args[:i] + args[i+1:] + [args[i]]
|
reordered = args[:i] + args[(i + 1):] + [args[i]]
|
||||||
self.verb = token
|
self.verb = token
|
||||||
return reordered
|
return reordered
|
||||||
|
|
||||||
|
|||||||
@@ -311,7 +311,7 @@ class Client(object):
|
|||||||
return os.path.abspath(act_cert_path), cert_chain_abspath
|
return os.path.abspath(act_cert_path), cert_chain_abspath
|
||||||
|
|
||||||
def deploy_certificate(self, domains, privkey_path,
|
def deploy_certificate(self, domains, privkey_path,
|
||||||
cert_path, chain_path, fullchain_path):
|
cert_path, chain_path, fullchain_path):
|
||||||
"""Install certificate
|
"""Install certificate
|
||||||
|
|
||||||
:param list domains: list of domains to install the certificate
|
:param list domains: list of domains to install the certificate
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ class Installer(common.Plugin):
|
|||||||
return []
|
return []
|
||||||
|
|
||||||
def deploy_cert(self, domain, cert_path, key_path,
|
def deploy_cert(self, domain, cert_path, key_path,
|
||||||
chain_path=None, fullchain_path=None):
|
chain_path=None, fullchain_path=None):
|
||||||
pass # pragma: no cover
|
pass # pragma: no cover
|
||||||
|
|
||||||
def enhance(self, domain, enhancement, options=None):
|
def enhance(self, domain, enhancement, options=None):
|
||||||
|
|||||||
@@ -151,8 +151,8 @@ class ClientTest(unittest.TestCase):
|
|||||||
installer = mock.MagicMock()
|
installer = mock.MagicMock()
|
||||||
self.client.installer = installer
|
self.client.installer = installer
|
||||||
|
|
||||||
self.client.deploy_certificate(["foo.bar"], "key", "cert", "chain",
|
self.client.deploy_certificate(
|
||||||
"fullchain")
|
["foo.bar"], "key", "cert", "chain", "fullchain")
|
||||||
installer.deploy_cert.assert_called_once_with(
|
installer.deploy_cert.assert_called_once_with(
|
||||||
cert_path=os.path.abspath("cert"),
|
cert_path=os.path.abspath("cert"),
|
||||||
chain_path=os.path.abspath("chain"),
|
chain_path=os.path.abspath("chain"),
|
||||||
|
|||||||
Reference in New Issue
Block a user