From 8a311d693bb8a79fc1878c7bb912b97781b4c14b Mon Sep 17 00:00:00 2001 From: geekerzp Date: Fri, 22 May 2015 10:50:11 +0800 Subject: [PATCH] updated python client samples --- .../python/SwaggerPetstore-python/.coverage | Bin 0 -> 3086 bytes .../SwaggerPetstore.egg-info/PKG-INFO | 12 +++++++++ .../SwaggerPetstore.egg-info/SOURCES.txt | 24 ++++++++++++++++++ .../dependency_links.txt | 1 + .../SwaggerPetstore.egg-info/pbr.json | 1 + .../SwaggerPetstore.egg-info/requires.txt | 2 ++ .../SwaggerPetstore.egg-info/top_level.txt | 2 ++ .../SwaggerPetstore/apis/pet_api.py | 7 +---- .../dev-requirements.txt.log | 5 ++++ 9 files changed, 48 insertions(+), 6 deletions(-) create mode 100644 samples/client/petstore/python/SwaggerPetstore-python/.coverage create mode 100644 samples/client/petstore/python/SwaggerPetstore-python/SwaggerPetstore.egg-info/PKG-INFO create mode 100644 samples/client/petstore/python/SwaggerPetstore-python/SwaggerPetstore.egg-info/SOURCES.txt create mode 100644 samples/client/petstore/python/SwaggerPetstore-python/SwaggerPetstore.egg-info/dependency_links.txt create mode 100644 samples/client/petstore/python/SwaggerPetstore-python/SwaggerPetstore.egg-info/pbr.json create mode 100644 samples/client/petstore/python/SwaggerPetstore-python/SwaggerPetstore.egg-info/requires.txt create mode 100644 samples/client/petstore/python/SwaggerPetstore-python/SwaggerPetstore.egg-info/top_level.txt create mode 100644 samples/client/petstore/python/SwaggerPetstore-python/dev-requirements.txt.log diff --git a/samples/client/petstore/python/SwaggerPetstore-python/.coverage b/samples/client/petstore/python/SwaggerPetstore-python/.coverage new file mode 100644 index 0000000000000000000000000000000000000000..6a74db3c6e5e88a712dac38a59b3bb7ffb014318 GIT binary patch literal 3086 zcmc(hX>1f_7{`4Ir7gWrdQ*w5Wkriyl;&so-sZ%yS2si^Y+thCfS+)yzlS%|K5?bA(I?> zmM7@3&~8Ma-E)X1YTk(e#K4M>MZe-7362 zq(%DNUaty|UzQ^P>ovDNyvo~u^n-Y;T;^|dg2aJ`p`5)m7N$*I@>U_r%GBcS(~v8 z$KwRF;6$8+lW_`GVii{7RII^zv|=OLunCOQQ604 z$(grc&oRtg2QrX_*~msN@{o@L6v})S+XGOED%8jTSo66UjWVN6GNsKnSj(|Ouu34c zPN3RgLj}R=bb)F!wm`?3*eZA#Hd>uf0+tV^02LLSF2SxOOnY#Jz%-80O#;#w?iPIR z#eKLR4`44I5|kcEg7lP)(lY|n0la8q^a@@TlqNtrBp`i+kMRjUvr+m|V6ss9K|uN$ zzX(XbB~kjzhUpmMbm9!+OyZnzq>62-%4B<{qmf)LU%(f2xvWjfGt7Jk2s4q6S!$X( zd~%=y!z}zSkkFHv@+wSQ%OzlV|^H?6S;*=O>=|r4%r4LL? z9C3w}rpz$sOr%LDcOmL+?KWbGJ=9Ja>*K^2En*96sMkUkF_zlYVHL6SmK$b;18JBc z#3!mL&n~4zB~{3=q008MW#vRAIi-@8+K#i5uM@wu0k+)|RdfbACe_h4+jo}jE)d@- z@m-g=t_LBznj&^N^^5BUumi)mI9XJqQc_n>vYq9++r@QbQcw@trrRfO+b>mg5O3iS z-V>i4R(d?OYdCpKD-E;is4= 1.10 +six >= 1.9 diff --git a/samples/client/petstore/python/SwaggerPetstore-python/SwaggerPetstore.egg-info/top_level.txt b/samples/client/petstore/python/SwaggerPetstore-python/SwaggerPetstore.egg-info/top_level.txt new file mode 100644 index 0000000000..28c004b431 --- /dev/null +++ b/samples/client/petstore/python/SwaggerPetstore-python/SwaggerPetstore.egg-info/top_level.txt @@ -0,0 +1,2 @@ +SwaggerPetstore +tests diff --git a/samples/client/petstore/python/SwaggerPetstore-python/SwaggerPetstore/apis/pet_api.py b/samples/client/petstore/python/SwaggerPetstore-python/SwaggerPetstore/apis/pet_api.py index b06447c8c4..db12623e75 100644 --- a/samples/client/petstore/python/SwaggerPetstore-python/SwaggerPetstore/apis/pet_api.py +++ b/samples/client/petstore/python/SwaggerPetstore-python/SwaggerPetstore/apis/pet_api.py @@ -238,18 +238,13 @@ class PetApi(object): body_params = None # HTTP header `Accept` - accepts = [] + accepts = ['application/json', 'application/xml'] header_params['Accept'] = ApiClient.select_header_accept(accepts) # HTTP header `Content-Type` content_types = [] header_params['Content-Type'] = ApiClient.select_header_content_type(content_types) - print('-----------------------------') - print('header_params: ', header_params) - print('-----------------------------') - return - response = self.api_client.call_api(resource_path, method, path_params, query_params, header_params, body=body_params, post_params=form_params, files=files, response='Pet') diff --git a/samples/client/petstore/python/SwaggerPetstore-python/dev-requirements.txt.log b/samples/client/petstore/python/SwaggerPetstore-python/dev-requirements.txt.log new file mode 100644 index 0000000000..0549f97e65 --- /dev/null +++ b/samples/client/petstore/python/SwaggerPetstore-python/dev-requirements.txt.log @@ -0,0 +1,5 @@ +Requirement already satisfied (use --upgrade to upgrade): nose in /Users/geekerzp/.virtualenvs/python2/lib/python2.7/site-packages (from -r dev-requirements.txt (line 1)) +Requirement already satisfied (use --upgrade to upgrade): tox in /Users/geekerzp/.virtualenvs/python2/lib/python2.7/site-packages (from -r dev-requirements.txt (line 2)) +Requirement already satisfied (use --upgrade to upgrade): coverage in /Users/geekerzp/.virtualenvs/python2/lib/python2.7/site-packages (from -r dev-requirements.txt (line 3)) +Requirement already satisfied (use --upgrade to upgrade): randomize in /Users/geekerzp/.virtualenvs/python2/lib/python2.7/site-packages (from -r dev-requirements.txt (line 4)) +Cleaning up...