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:
Justin Black
2021-11-01 12:15:45 -07:00
committed by GitHub
parent 666382b377
commit 7559b53370
10 changed files with 617 additions and 0 deletions

View File

@@ -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()