Fix many pylint warnings
[functest.git] / functest / api / base.py
index ffc5678..b104829 100644 (file)
@@ -26,9 +26,6 @@ LOGGER = logging.getLogger(__name__)
 class ApiResource(Resource):
     """ API Resource class"""
 
-    def __init__(self):
-        super(ApiResource, self).__init__()
-
     def _post_args(self):  # pylint: disable=no-self-use
         # pylint: disable=maybe-no-member
         """ Return action and args after parsing request """
@@ -45,6 +42,11 @@ class ApiResource(Resource):
 
         return action, args
 
+    def _get_args(self):  # pylint: disable=no-self-use
+        """ Convert the unicode to string for request.args """
+        args = api_utils.change_to_str_in_dict(request.args)
+        return args
+
     def _dispatch_post(self):
         """ Dispatch request """
         action, args = self._post_args()