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() ...@@ -47,7 +47,7 @@ _cryptography_backend = default_backend()
BACKUP_SUFFIX = '.sql.caucased' BACKUP_SUFFIX = '.sql.caucased'
def getBytePass(prompt): def getBytePass(prompt): # pragma: no cover
""" """
Like getpass, but resurns a bytes instance. Like getpass, but resurns a bytes instance.
""" """
......
...@@ -128,7 +128,7 @@ class FakeAppServer(object): ...@@ -128,7 +128,7 @@ class FakeAppServer(object):
""" """
return self._app 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. Minimal WSGI app, which does not touch environ.
""" """
...@@ -220,7 +220,7 @@ class CaucaseTest(unittest.TestCase): ...@@ -220,7 +220,7 @@ class CaucaseTest(unittest.TestCase):
) )
except SystemExit, e: except SystemExit, e:
return e.code return e.code
except: except: # pylint: disable=bare-except
return 1 return 1
return 0 return 0
......
...@@ -400,7 +400,7 @@ class SleepInterrupt(KeyboardInterrupt): ...@@ -400,7 +400,7 @@ class SleepInterrupt(KeyboardInterrupt):
""" """
pass pass
def interruptibleSleep(duration): def interruptibleSleep(duration): # pragma: no cover
""" """
Like sleep, but raises SleepInterrupt when interrupted by KeyboardInterrupt Like sleep, but raises SleepInterrupt when interrupted by KeyboardInterrupt
""" """
...@@ -409,7 +409,7 @@ def interruptibleSleep(duration): ...@@ -409,7 +409,7 @@ def interruptibleSleep(duration):
except KeyboardInterrupt: except KeyboardInterrupt:
raise SleepInterrupt raise SleepInterrupt
def until(deadline): def until(deadline): # pragma: no cover
""" """
Call interruptibleSleep until deadline is reached. Call interruptibleSleep until deadline is reached.
""" """
......
...@@ -379,7 +379,11 @@ class Application(object): ...@@ -379,7 +379,11 @@ class Application(object):
except ValueError: except ValueError:
raise BadRequest('Invalid json') raise BadRequest('Invalid json')
def getCertificateRevocationList(self, context, environ): def getCertificateRevocationList(
self,
context,
environ,
): # pylint: disable=unused-argument
""" """
Handle GET /{context}/crl . Handle GET /{context}/crl .
""" """
...@@ -430,7 +434,11 @@ class Application(object): ...@@ -430,7 +434,11 @@ class Application(object):
raise NotFound raise NotFound
return (STATUS_NO_CONTENT, header_list, []) 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. Handle GET /{context}/crt/ca.crt.pem urls.
""" """
...@@ -439,7 +447,11 @@ class Application(object): ...@@ -439,7 +447,11 @@ class Application(object):
'application/x-x509-ca-cert', '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. Handle GET /{context}/crt/ca.crt.json urls.
""" """
...@@ -448,7 +460,12 @@ class Application(object): ...@@ -448,7 +460,12 @@ class Application(object):
'application/json', '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. 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