All Downloads are FREE. Search and download functionalities are using the official Maven repository.

python.api_test.mustache Maven / Gradle / Ivy

There is a newer version: 7.9.0
Show newest version
# coding: utf-8

{{>partial_header}}

import unittest

from {{apiPackage}}.{{classFilename}} import {{classname}}


class {{#operations}}Test{{classname}}(unittest.TestCase):
    """{{classname}} unit test stubs"""

    def setUp(self) -> None:
        self.api = {{classname}}()

    def tearDown(self) -> None:
        pass

   {{#operation}}
    def test_{{operationId}}(self) -> None:
        """Test case for {{{operationId}}}

{{#summary}}
        {{{.}}}
{{/summary}}
        """
        pass

   {{/operation}}
{{/operations}}

if __name__ == '__main__':
    unittest.main()




© 2015 - 2024 Weber Informatics LLC | Privacy Policy