forked from loafle/openapi-generator-original
* Removes future from python-exp v3 sample * Removes future from python-exp v2 sample * Deletes future from remaining python-exp files * Removes six from python-exp templates * Removes six from python-exp samples * Removes mock from python-exp * Python-exp switched to py3 * Removes python 2.7 for python-exp ci testing * Requires python>=3.3 for python-exp * Reverts unnecessary changes to two templates
48 lines
1.0 KiB
Python
48 lines
1.0 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
|
|
"""
|
|
|
|
|
|
import sys
|
|
import unittest
|
|
|
|
import petstore_api
|
|
try:
|
|
from petstore_api.model import animal
|
|
except ImportError:
|
|
animal = sys.modules[
|
|
'petstore_api.model.animal']
|
|
try:
|
|
from petstore_api.model import cat_all_of
|
|
except ImportError:
|
|
cat_all_of = sys.modules[
|
|
'petstore_api.model.cat_all_of']
|
|
from petstore_api.model.cat import Cat
|
|
|
|
|
|
class TestCat(unittest.TestCase):
|
|
"""Cat unit test stubs"""
|
|
|
|
def setUp(self):
|
|
pass
|
|
|
|
def tearDown(self):
|
|
pass
|
|
|
|
def testCat(self):
|
|
"""Test Cat"""
|
|
# FIXME: construct object with mandatory attributes with example values
|
|
# model = Cat() # noqa: E501
|
|
pass
|
|
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|