Skip to content

Commit

Permalink
fix tests after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
tomplus committed Aug 25, 2018
1 parent 2898359 commit 9f2d16d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 102 deletions.
2 changes: 1 addition & 1 deletion samples/client/petstore/python-tornado/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
101 changes: 0 additions & 101 deletions samples/client/petstore/python/petstore_api/api/fake_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 \&quot;client\&quot; model # noqa: E501
Expand Down

0 comments on commit 9f2d16d

Please sign in to comment.