Commit 9e88ff13 authored by Vincent Pelletier's avatar Vincent Pelletier

all: Make coverage and pylint happier.

parent f2805289
......@@ -47,7 +47,7 @@ _cryptography_backend = default_backend()
BACKUP_SUFFIX = '.sql.caucased'
def getBytePass(prompt):
def getBytePass(prompt): # pragma: no cover
"""
Like getpass, but resurns a bytes instance.
"""
......
......@@ -128,7 +128,7 @@ class FakeAppServer(object):
"""
return self._app
def noopApp(environ, start_response):
def noopApp(environ, start_response): # pylint: disable=unused-argument
"""
Minimal WSGI app, which does not touch environ.
"""
......@@ -220,7 +220,7 @@ class CaucaseTest(unittest.TestCase):
)
except SystemExit, e:
return e.code
except:
except: # pylint: disable=bare-except
return 1
return 0
......
......@@ -400,7 +400,7 @@ class SleepInterrupt(KeyboardInterrupt):
"""
pass
def interruptibleSleep(duration):
def interruptibleSleep(duration): # pragma: no cover
"""
Like sleep, but raises SleepInterrupt when interrupted by KeyboardInterrupt
"""
......@@ -409,7 +409,7 @@ def interruptibleSleep(duration):
except KeyboardInterrupt:
raise SleepInterrupt
def until(deadline):
def until(deadline): # pragma: no cover
"""
Call interruptibleSleep until deadline is reached.
"""
......
......@@ -379,7 +379,11 @@ class Application(object):
except ValueError:
raise BadRequest('Invalid json')
def getCertificateRevocationList(self, context, environ):
def getCertificateRevocationList(
self,
context,
environ,
): # pylint: disable=unused-argument
"""
Handle GET /{context}/crl .
"""
......@@ -430,7 +434,11 @@ class Application(object):
raise NotFound
return (STATUS_NO_CONTENT, header_list, [])
def getCACertificate(self, context, environ):
def getCACertificate(
self,
context,
environ,
): # pylint: disable=unused-argument
"""
Handle GET /{context}/crt/ca.crt.pem urls.
"""
......@@ -439,7 +447,11 @@ class Application(object):
'application/x-x509-ca-cert',
)
def getCACertificateChain(self, context, environ):
def getCACertificateChain(
self,
context,
environ,
): # pylint: disable=unused-argument
"""
Handle GET /{context}/crt/ca.crt.json urls.
"""
......@@ -448,7 +460,12 @@ class Application(object):
'application/json',
)
def getCertificate(self, context, environ, subpath):
def getCertificate(
self,
context,
environ,
subpath,
): # pylint: disable=unused-argument
"""
Handle GET /{context}/crt/{crt_id} urls.
"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment