From 9f2d16d3180cb95a3d2dbecd79075f1ab923377d Mon Sep 17 00:00:00 2001 From: Tomasz Prus Date: Sat, 25 Aug 2018 23:36:00 +0200 Subject: [PATCH] fix tests after merge --- .../client/petstore/python-tornado/setup.py | 2 +- .../python/petstore_api/api/fake_api.py | 101 ------------------ 2 files changed, 1 insertion(+), 102 deletions(-) diff --git a/samples/client/petstore/python-tornado/setup.py b/samples/client/petstore/python-tornado/setup.py index ea0a40a1b06..5e542baf523 100644 --- a/samples/client/petstore/python-tornado/setup.py +++ b/samples/client/petstore/python-tornado/setup.py @@ -23,7 +23,7 @@ # http://pypi.python.org/pypi/setuptools REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"] -REQUIRES.append("tornado") +REQUIRES.append("tornado < 5.0") setup( name=NAME, diff --git a/samples/client/petstore/python/petstore_api/api/fake_api.py b/samples/client/petstore/python/petstore_api/api/fake_api.py index 6ff5703281a..226d751bb2c 100644 --- a/samples/client/petstore/python/petstore_api/api/fake_api.py +++ b/samples/client/petstore/python/petstore_api/api/fake_api.py @@ -482,107 +482,6 @@ def test_body_with_query_params_with_http_info(self, body, query, **kwargs): # _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def test_body_with_query_params(self, body, query, **kwargs): # noqa: E501 - """test_body_with_query_params # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.test_body_with_query_params(body, query, async=True) - >>> result = thread.get() - - :param async bool - :param User body: (required) - :param str query: (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async'): - return self.test_body_with_query_params_with_http_info(body, query, **kwargs) # noqa: E501 - else: - (data) = self.test_body_with_query_params_with_http_info(body, query, **kwargs) # noqa: E501 - return data - - def test_body_with_query_params_with_http_info(self, body, query, **kwargs): # noqa: E501 - """test_body_with_query_params # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.test_body_with_query_params_with_http_info(body, query, async=True) - >>> result = thread.get() - - :param async bool - :param User body: (required) - :param str query: (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body', 'query'] # noqa: E501 - all_params.append('async') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method test_body_with_query_params" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `test_body_with_query_params`") # noqa: E501 - # verify the required parameter 'query' is set - if ('query' not in params or - params['query'] is None): - raise ValueError("Missing the required parameter `query` when calling `test_body_with_query_params`") # noqa: E501 - - collection_formats = {} - - path_params = {} - - query_params = [] - if 'query' in params: - query_params.append(('query', params['query'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/fake/body-with-query-params', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, # noqa: E501 - auth_settings=auth_settings, - async=params.get('async'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - def test_client_model(self, body, **kwargs): # noqa: E501 """To test \"client\" model # noqa: E501