Skip to content

Commit

Permalink
Skip tests on non-Windows systems
Browse files Browse the repository at this point in the history
  • Loading branch information
twangboy committed Apr 17, 2020
1 parent ea6de1b commit 23dfd61
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tests/unit/modules/test_win_wua.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

# Import Salt Testing Libs
from tests.support.mock import patch
from tests.support.unit import TestCase
from tests.support.unit import TestCase, skipIf

UPDATES_LIST = {
"ca3bb521-a8ea-4e26-a563-2ad6e3108b9a": {"KBs": ["KB4481252"]},
Expand All @@ -39,6 +39,7 @@ def summary():
return UPDATES_SUMMARY


@skipIf(not salt.utils.platform.is_windows(), "System is not Windows")
class WinWuaInstalledTestCase(TestCase):
"""
Test the functions in the win_wua.installed function
Expand Down
4 changes: 3 additions & 1 deletion tests/unit/utils/test_win_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@

# Import Salt Libs
import salt.utils.win_update as win_update
import salt.utils.platform

# Import Salt Testing Libs
from tests.support.mock import MagicMock, patch
from tests.support.unit import TestCase
from tests.support.unit import TestCase, skipIf


@skipIf(not salt.utils.platform.is_windows(), "System is not Windows")
class WinUpdateTestCase(TestCase):
"""
Test cases for salt.utils.win_update
Expand Down

0 comments on commit 23dfd61

Please sign in to comment.