mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Skip test if pytz not present
This commit is contained in:
parent
72cc361c7b
commit
60499d18f0
1 changed files with 2 additions and 1 deletions
|
@ -7,7 +7,7 @@ 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.unit import TestCase, skipIf
|
||||
from tests.support.mock import (
|
||||
MagicMock,
|
||||
patch
|
||||
|
@ -17,6 +17,7 @@ from tests.support.mock import (
|
|||
import salt.modules.win_timezone as win_timezone
|
||||
|
||||
|
||||
@skipIf(not win_timezone.HAS_PYTZ, 'This test requires pytz')
|
||||
class WinTimezoneTestCase(TestCase, LoaderModuleMockMixin):
|
||||
'''
|
||||
Test cases for salt.modules.win_timezone
|
||||
|
|
Loading…
Add table
Reference in a new issue