python.model_test.mustache Maven / Gradle / Ivy
{{>partial_header}}
import sys
import unittest
import {{packageName}}
{{#models}}
{{#model}}
{{#imports}}
{{{.}}}
{{/imports}}
from {{modelPackage}}.{{classFilename}} import {{classname}}
class Test{{classname}}(unittest.TestCase):
"""{{classname}} unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def test{{classname}}(self):
"""Test {{classname}}"""
# FIXME: construct object with mandatory attributes with example values
# model = {{classname}}() # noqa: E501
pass
{{/model}}
{{/models}}
if __name__ == '__main__':
unittest.main()