Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
caucase
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Boxiang Sun
caucase
Commits
9e88ff13
Commit
9e88ff13
authored
Nov 04, 2017
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
all: Make coverage and pylint happier.
parent
f2805289
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
9 deletions
+26
-9
caucase/http.py
caucase/http.py
+1
-1
caucase/test.py
caucase/test.py
+2
-2
caucase/utils.py
caucase/utils.py
+2
-2
caucase/wsgi.py
caucase/wsgi.py
+21
-4
No files found.
caucase/http.py
View file @
9e88ff13
...
@@ -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.
"""
"""
...
...
caucase/test.py
View file @
9e88ff13
...
@@ -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
...
...
caucase/utils.py
View file @
9e88ff13
...
@@ -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.
"""
"""
...
...
caucase/wsgi.py
View file @
9e88ff13
...
@@ -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.
"""
"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment