Cannot return a value from __init__
Updated __init__ method of FakeRequestContext class, because __init__ method of classes should not return any value. TrivialFix Change-Id: I43c3c5e052138fc734ed1cb89ccc0a1d9ac4d60a
This commit is contained in:
parent
5a4a029e44
commit
bf46f04c07
|
@ -103,7 +103,7 @@ class FakeToken(object):
|
|||
class FakeRequestContext(context.RequestContext):
|
||||
def __init__(self, *args, **kwargs):
|
||||
kwargs['auth_token'] = kwargs.get('auth_token', 'fake_auth_token')
|
||||
return super(FakeRequestContext, self).__init__(*args, **kwargs)
|
||||
super(FakeRequestContext, self).__init__(*args, **kwargs)
|
||||
|
||||
|
||||
class HTTPRequest(os_wsgi.Request):
|
||||
|
|
Loading…
Reference in New Issue