Skip to content

Commit

Permalink
Update test_win_service.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jlayze authored Jul 3, 2017
1 parent 6e8c5db commit 6566f10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/unit/modules/test_win_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,8 @@ def test_enable(self):
Test to enable the named service to start at boot
'''
mock_modify = MagicMock(return_value=True)
mock_info = MagicMock(return_value={'StartType': 'Auto'})
mock_info = MagicMock(return_value={'StartType': 'Auto',
'StartTypeDelayed': False})
with patch.object(win_service, 'modify', mock_modify):
with patch.object(win_service, 'info', mock_info):
self.assertTrue(win_service.enable('spongebob'))
Expand Down

0 comments on commit 6566f10

Please sign in to comment.