mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 00:55:19 +00:00
Add test case init commit
This commit is contained in:
parent
3c17810486
commit
1d1627a98d
31
tests/unit/utils/test_utils.py
Normal file
31
tests/unit/utils/test_utils.py
Normal file
@ -0,0 +1,31 @@
|
||||
# coding=utf-8
|
||||
'''
|
||||
Test case for utils/__init__.py
|
||||
'''
|
||||
from tests.support.unit import TestCase, skipIf
|
||||
from tests.support.mock import (
|
||||
NO_MOCK,
|
||||
NO_MOCK_REASON,
|
||||
MagicMock,
|
||||
patch
|
||||
)
|
||||
|
||||
try:
|
||||
import pytest
|
||||
except ImportError:
|
||||
pytest = None
|
||||
import salt.utils
|
||||
|
||||
|
||||
@skipIf(pytest is None, 'PyTest is missing')
|
||||
class UtilsTestCase(TestCase):
|
||||
'''
|
||||
Test case for utils/__init__.py
|
||||
'''
|
||||
def test_get_module_environment(self):
|
||||
'''
|
||||
Test for salt.utils.get_module_environment
|
||||
:return:
|
||||
'''
|
||||
_globals = {}
|
||||
salt.utils.get_module_environment(_globals)
|
Loading…
Reference in New Issue
Block a user