Skip tests on Linux systems

This commit is contained in:
twangboy 2018-08-28 11:01:49 -06:00
parent 0ca9cd1cfa
commit 97567af232
No known key found for this signature in database
GPG key ID: 93FF3BDEB278C9EB

View file

@ -137,6 +137,7 @@ class WinServiceTestCase(TestCase, LoaderModuleMockMixin):
patch.object(win_service, 'status', mock_true):
self.assertTrue(win_service.start('spongebob'))
@skipIf(not WINAPI, 'pywintypes not available')
def test_start_already_running(self):
'''
Test starting a service that is already running
@ -174,6 +175,7 @@ class WinServiceTestCase(TestCase, LoaderModuleMockMixin):
patch.object(win_service, 'status', mock_false):
self.assertTrue(win_service.stop('spongebob'))
@skipIf(not WINAPI, 'pywintypes not available')
def test_stop_not_running(self):
'''
Test stopping a service that is already stopped