Remove redundant FakeSchemaAPI __init__ method
Currently, the FakeSchemaAPI in tests/utils has an overriden __init__ method which simply calls super of FakeAPI and doesn't perform any extra operations. This is redundant, because same effect will be achieved when __init__ definition is omitted in FakeSchemaAPI. Additionally it uses 'cls' as first param instead of 'self' which breaks naming convention. Change-Id: I3e72adfbc7b67076748f640d74507ff28c6060d7 Closes-Bug: 1418508
This commit is contained in:
parent
15c2e40449
commit
13b5a5ade1
@ -66,9 +66,6 @@ class FakeAPI(object):
|
||||
|
||||
|
||||
class FakeSchemaAPI(FakeAPI):
|
||||
def __init__(cls, *args):
|
||||
super(FakeSchemaAPI, cls).__init__(*args)
|
||||
|
||||
def get(self, *args, **kwargs):
|
||||
_, raw_schema = self._request('GET', *args, **kwargs)
|
||||
return Schema(raw_schema)
|
||||
|
Loading…
x
Reference in New Issue
Block a user