python-pydantic-v1.api_test.mustache Maven / Gradle / Ivy
# coding: utf-8
{{>partial_header}}
import unittest
from {{apiPackage}}.{{classFilename}} import {{classname}} # noqa: E501
class {{#operations}}Test{{classname}}(unittest.TestCase):
"""{{classname}} unit test stubs"""
def setUp(self) -> None:
self.api = {{classname}}() # noqa: E501
def tearDown(self) -> None:
pass
{{#operation}}
def test_{{operationId}}(self) -> None:
"""Test case for {{{operationId}}}
{{#summary}}
{{{.}}} # noqa: E501
{{/summary}}
"""
pass
{{/operation}}
{{/operations}}
if __name__ == '__main__':
unittest.main()