Python: Correctly serialize enum with its value (#18327) (#18328)

This commit is contained in:
BaptisteSaves
2024-04-10 15:12:37 +02:00
committed by GitHub
parent 9351217048
commit 6bcc28d06e
19 changed files with 233 additions and 30 deletions

View File

@@ -0,0 +1,33 @@
# 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: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from petstore_api.models.enum_serialization import EnumSerialization
class TestEnumSerialization(unittest.TestCase):
"""EnumSerialization unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testEnumSerialization(self):
"""Test EnumSerialization"""
# inst = EnumSerialization()
if __name__ == '__main__':
unittest.main()