Commit 35919046 authored by Vincent Pelletier's avatar Vincent Pelletier

caucase.{wsgi,test}: Declare functions instead of lambda-in-local

Silences pylint warnings.
parent 1c2e95f7
...@@ -1654,11 +1654,13 @@ class CaucaseTest(TestCase): ...@@ -1654,11 +1654,13 @@ class CaucaseTest(TestCase):
] ]
cau_crt, = cau_ca_list cau_crt, = cau_ca_list
caucase_url = self._caucase_url + '/cau' caucase_url = self._caucase_url + '/cau'
updateCAFile = lambda: CaucaseClient.updateCAFile( def updateCAFile():
return CaucaseClient.updateCAFile(
url=caucase_url, url=caucase_url,
ca_crt_path=self._client_user_ca_crt, ca_crt_path=self._client_user_ca_crt,
) )
updateCRLFile = lambda: CaucaseClient.updateCRLFile( def updateCRLFile():
return CaucaseClient.updateCRLFile(
url=caucase_url, url=caucase_url,
crl_path=self._client_user_crl, crl_path=self._client_user_crl,
ca_list=cau_ca_list, ca_list=cau_ca_list,
......
...@@ -495,7 +495,8 @@ class Application(object): ...@@ -495,7 +495,8 @@ class Application(object):
}, },
}, },
} }
getHALMethodDict = lambda name, title: { def getHALMethodDict(name, title):
return {
'GET': { 'GET': {
'do': self.getHAL, 'do': self.getHAL,
'context_is_routing': True, 'context_is_routing': True,
......
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