forked from loafle/openapi-generator-original
* Adds lazy_import, removes python-exp java class renaming code, partial removal of getPythonClassName call sites Fixes PythonClientExperimentalTest.java Python-exp smaples regeneration Revers makefile Reverst pom.xml Fixes model imports in models.__init__ Updates docstring, omits lazy import in additional properties if we dont need it Improves additional_properties_type assignment if None Removes getPythonClassName Fixes python-exp tests * Removes unused makefiles
49 lines
1.1 KiB
Python
49 lines
1.1 KiB
Python
# coding: utf-8
|
|
|
|
"""
|
|
OpenAPI 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: \" \\ # noqa: E501
|
|
|
|
The version of the OpenAPI document: 1.0.0
|
|
Generated by: https://openapi-generator.tech
|
|
"""
|
|
|
|
|
|
from __future__ import absolute_import
|
|
import sys
|
|
import unittest
|
|
|
|
import petstore_api
|
|
try:
|
|
from petstore_api.model import cat
|
|
except ImportError:
|
|
cat = sys.modules[
|
|
'petstore_api.model.cat']
|
|
try:
|
|
from petstore_api.model import dog
|
|
except ImportError:
|
|
dog = sys.modules[
|
|
'petstore_api.model.dog']
|
|
from petstore_api.model.animal import Animal
|
|
|
|
|
|
class TestAnimal(unittest.TestCase):
|
|
"""Animal unit test stubs"""
|
|
|
|
def setUp(self):
|
|
pass
|
|
|
|
def tearDown(self):
|
|
pass
|
|
|
|
def testAnimal(self):
|
|
"""Test Animal"""
|
|
# FIXME: construct object with mandatory attributes with example values
|
|
# model = Animal() # noqa: E501
|
|
pass
|
|
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|