X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=functest%2Fapi%2Fbase.py;h=b1048293158b7cb7f0735f5adf591a5d0f277fb3;hb=eb973db776e77781c875d2640c4d59f878ba27c0;hp=ffc5678607a63680a9e0275f74ec78db71607968;hpb=4d944e52db2c2a39d2417006a9945b949170a916;p=functest.git diff --git a/functest/api/base.py b/functest/api/base.py index ffc567860..b10482931 100644 --- a/functest/api/base.py +++ b/functest/api/base.py @@ -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()