From 13b5a5ade126b39c683f3f81968b9350fc0f6ba2 Mon Sep 17 00:00:00 2001 From: Kamil Rykowski Date: Thu, 5 Feb 2015 12:56:00 +0100 Subject: [PATCH] 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 --- tests/utils.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/tests/utils.py b/tests/utils.py index 61783fa..a47dcb3 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -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)