From a7974fe508ee69854ef9c6576f04ba388528abc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ry=20Plassat?= Date: Fri, 16 Jun 2017 12:48:15 +0200 Subject: [PATCH] Patched the windows status test --- tests/unit/modules/test_win_service.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/unit/modules/test_win_service.py b/tests/unit/modules/test_win_service.py index 54c5c465bd..e179d58d2f 100644 --- a/tests/unit/modules/test_win_service.py +++ b/tests/unit/modules/test_win_service.py @@ -184,6 +184,7 @@ class WinServiceTestCase(TestCase, LoaderModuleMockMixin): with patch.dict(win_service.__salt__, {'task.run': mock_true}): self.assertTrue(win_service.execute_salt_restart_task()) + @skipIf(not WINAPI, 'win32serviceutil not available') def test_status(self): ''' Test to return the status for a service