forked from loafle/openapi-generator-original
38 lines
718 B
Plaintext
38 lines
718 B
Plaintext
# coding: utf-8
|
|
|
|
{{>partial_header}}
|
|
|
|
from __future__ import absolute_import
|
|
|
|
import os
|
|
import sys
|
|
import unittest
|
|
|
|
import swagger_client
|
|
from swagger_client.rest import ApiException
|
|
from swagger_client.apis.{{classVarName}} import {{classname}}
|
|
|
|
|
|
class {{#operations}}Test{{classname}}(unittest.TestCase):
|
|
""" {{classname}} unit test stubs """
|
|
|
|
def setUp(self):
|
|
self.api = swagger_client.apis.{{classVarName}}.{{classname}}()
|
|
|
|
def tearDown(self):
|
|
pass
|
|
|
|
{{#operation}}
|
|
def test_{{operationId}}(self):
|
|
"""
|
|
Test case for {{{operationId}}}
|
|
|
|
{{{summary}}}
|
|
"""
|
|
pass
|
|
|
|
{{/operation}}
|
|
{{/operations}}
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main() |