wing328
e1e5ac4d37
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-05-17 22:00:06 +08:00
Cas Perl
a6b7f60ac7
Python improved ( #5512 )
...
* ignore .vscode
* fixed test case for models requiring mandatory attributes. added deserialize test for enum class
* construct model with mandatory attributes. improve class reflection (e.g. deserialize). disable generated empty model unit test for further FIXME
* rebuilt samples
* FIXME comment
* FIXME comment
* fix deserialization enum test
2017-05-17 21:18:51 +08:00
wing328
f7cbb2c0e6
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-04-23 15:26:15 +08:00
Cas Perl
122db78b1a
Issue 5375 ( #5403 )
...
* use py3 instead of py34
* fixed test to test invalid enum
* ADDED: assign variable in the ctor with property setter to check validity if possible. CHANGE: move required property check to proper place. CHANGE: remove double quotes from allowed_values for none-string enum property
* rebuilt samples
* comment for improvement
* ADDED: post process enum model for python.
* comment
* rebuilt samples
* rebuilt samples
2017-04-21 22:05:54 +08:00
baartosz
13cccccb67
fixed error handling in async requests in python client ( #5308 )
2017-04-06 16:55:53 +08:00
baartosz
8b891be7d7
[Python] remove singleton ( #5012 )
...
* updated tests relying on configuration's singleton
* regenerated samples
* removed singleton from templates
* regenerated samples
* removed broken sample and its test
* reverted accidental change
* regenerated security/ samples
* removed singleton from RESTClientObject
* removed unused Configuration import
* reverted unrelated change
* updated usage examples in api_doc template
2017-03-22 22:25:46 +08:00
wing328
58b66a0b0a
python code style enhancement ( #4238 )
2016-11-22 23:01:41 +08:00
mbohlool
876669cd31
[Python] Add support for request timeout ( #4173 )
...
* [Python] Add support for request timeout
* Update python petstore api
* [Python] Add test for request timeout
2016-11-11 23:48:53 +08:00
mbohlool
cfd8add825
Add test for _preload_content flag
2016-11-10 14:24:06 -08:00
Bartek Kryza
6d6832e7a6
Fix for #3712 - invalid enum array validation in Python client mustache model ( #3713 )
...
* Fixed invalid enum array validation in Python client mustache model
* Updated the Petstore Python client tests
* Removed superfluous array enum test
* Added test cases for Python client array and map enums
* Improved map enum error message
2016-09-12 11:00:49 +08:00
Tao Qian
8818cf9ff4
raise Exception instead of str ( #3322 )
2016-07-20 20:06:48 +08:00
Jason Gavris
be65a26db0
[Python] Fix flaky test with id collisions
2016-07-18 23:29:17 -04:00
wing328
f7b223e1a9
fix test cases in python
2016-07-06 16:34:09 +08:00
wing328
88ce868bd5
Merge branch 'new_python_with_http_info' of https://github.com/zhenjun115/swagger-codegen into zhenjun115-new_python_with_http_info
...
Conflicts:
modules/swagger-codegen/src/main/resources/python/api.mustache
samples/client/petstore/python/swagger_client/__init__.py
samples/client/petstore/python/swagger_client/api_client.py
samples/client/petstore/python/swagger_client/apis/pet_api.py
samples/client/petstore/python/swagger_client/apis/store_api.py
samples/client/petstore/python/swagger_client/apis/user_api.py
samples/client/petstore/python/swagger_client/models/__init__.py
samples/client/petstore/python/swagger_client/models/name.py
2016-06-20 11:58:35 +08:00
zhenjun115
8180a46a35
add test case for pet api method with http info returned;
2016-06-19 21:44:12 +08:00
zhenjun115
86c8647ace
add async method test case for pet api;
2016-06-19 12:31:10 +08:00
Takuro Wada
7916f5243d
[Python] Fix bug of test files about packageName
2016-06-08 09:24:12 +09:00
Takuro Wada
955d39f709
[Python] Follow PEP8 rules ( Issue #3041 )
2016-06-05 23:15:36 +09:00
zhenjun115
67c3f98d96
enable python api client to return just data without http header info when need;
2016-06-04 23:30:10 +08:00
zhenghaitao
bf15c88811
issue2061_fix_DeprecationWarning_in_unit_tests
2016-04-08 15:18:42 +08:00
wing328
b592819e3b
add eq for python, update test case
2015-11-24 17:36:38 +08:00
geekerzp
9b148be57e
Fix issue in python client.
...
If upload only file it will not send file content.
2015-09-25 15:10:32 +08:00
geekerzp
568b7a4fcd
Add test cases for sanitize_for_serialization method in python client.
2015-08-25 15:04:46 +08:00
geekerzp
2be3414357
Update python client.
...
Add test case for nested list deserialization.
2015-07-28 15:23:44 +08:00
geekerzp
ea901bf1ce
Update python client.
...
Add test case for nested dict deserialization.
2015-07-28 14:34:50 +08:00
geekerzp
bd6fa6a2e4
Update PetApiTests#test_find_pet_by_tags test case of python client
2015-07-22 15:50:40 +08:00
geekerzp
b9287cf417
Add to_str method in python client and add test cases.
2015-07-22 11:00:51 +08:00
geekerzp
8746f1544b
Merge branch 'develop_2.0' into python-enum
2015-07-16 17:27:17 +08:00
geekerzp
f0e09ae33a
Add enum support for model property of python client
2015-07-16 17:24:42 +08:00
geekerzp
33561fa159
Support date type in python client
2015-07-16 10:11:27 +08:00
geekerzp
88e5860d9b
support asynchronous request in python client
2015-07-15 15:25:31 +08:00
geekerzp
23dfac0194
Update deserialization of python client.
...
Return None if deserialize data is None.
2015-07-14 09:39:19 +08:00
geekerzp
b99f006861
Update Python client.
...
Throw ApiException if fail to parse string to datetime.
2015-07-14 09:39:19 +08:00
geekerzp
80d1deb2dd
Update unit tests of Python client.
...
Add more test cases for deserialization.
2015-07-14 09:39:19 +08:00
geekerzp
2912ee8ae1
Update deserialize response of Python client.
2015-07-14 09:39:18 +08:00
geekerzp
6df6c079ee
Support file downloading in Python codegen.
2015-07-14 09:39:18 +08:00
geekerzp
8d18aee2f2
Update test case test_deserialize_to_dict
of python client
2015-06-18 22:02:54 +08:00
geekerzp
5d19ef6146
Generate the python into python/
folder directly
2015-06-18 10:43:24 +08:00