salt/templates/test_module/tests/unit/modules/test_{{module_name}}.py

23 lines
669 B
Python

# -*- coding: utf-8 -*-
'''
:codeauthor: {{full_name}} <{{email}}>
'''
# Import Python Libs
from __future__ import absolute_import, unicode_literals, print_function
# Import Salt Testing Libs
from tests.support.mixins import LoaderModuleMockMixin
from tests.support.unit import TestCase
from tests.support.mock import patch
import salt.modules.{{module_name}} as {{module_name}}
class {{module_name|capitalize}}TestCase(TestCase, LoaderModuleMockMixin):
def setup_loader_modules(self):
return {% raw -%} { {%- endraw -%} {{module_name}} {%- raw -%}: {}} {%- endraw %}
def test_behaviour(self):
# Test inherent behaviours
pass