Patched the windows status test

This commit is contained in:
Cléry Plassat 2017-06-16 12:48:15 +02:00
parent 2b5c7fb2e1
commit a7974fe508

View File

@ -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