forked from loafle/openapi-generator-original
Feat adds python AnyOf send and receive example (#10754)
* Samples regenerated * Adds AnyOf tx/rx example to python * Updates samples
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
"""
|
||||
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
|
||||
from petstore_api.model.apple import Apple
|
||||
from petstore_api.model.banana import Banana
|
||||
globals()['Apple'] = Apple
|
||||
globals()['Banana'] = Banana
|
||||
from petstore_api.model.gm_fruit_no_properties import GmFruitNoProperties
|
||||
|
||||
|
||||
class TestGmFruitNoProperties(unittest.TestCase):
|
||||
"""GmFruitNoProperties unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def testGmFruitNoProperties(self):
|
||||
"""Test GmFruitNoProperties"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = GmFruitNoProperties() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
Reference in New Issue
Block a user