mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #43732 from twangboy/win_skip_mac_pkg_tests
Skip `unit.stats.test_mac_packages` on Windows
This commit is contained in:
commit
3f888753d4
1 changed files with 3 additions and 1 deletions
|
@ -2,19 +2,21 @@
|
|||
|
||||
# Import Python libs
|
||||
from __future__ import absolute_import
|
||||
import sys
|
||||
|
||||
# Import Salt Libs
|
||||
import salt.states.mac_package as macpackage
|
||||
|
||||
# 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
|
||||
)
|
||||
|
||||
|
||||
@skipIf(sys.platform.startswith('win'), "Not a Windows test")
|
||||
class MacPackageTestCase(TestCase, LoaderModuleMockMixin):
|
||||
def setup_loader_modules(self):
|
||||
return {macpackage: {}}
|
||||
|
|
Loading…
Add table
Reference in a new issue