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
This commit is contained in:
Cas Perl
2017-05-17 15:18:51 +02:00
committed by wing328
parent 5bfd723ecc
commit a6b7f60ac7
79 changed files with 917 additions and 1167 deletions

View File

@@ -3,25 +3,14 @@
"""
Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
from __future__ import absolute_import
import os
@@ -46,7 +35,9 @@ class TestAnimal(unittest.TestCase):
"""
Test Animal
"""
model = petstore_api.models.animal.Animal()
# FIXME: construct object with required attributes
#model = petstore_api.models.animal.Animal()
pass
if __name__ == '__main__':