mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fixed tests
This commit is contained in:
parent
ad44d79f26
commit
b3f284c517
1 changed files with 2 additions and 2 deletions
|
@ -149,7 +149,7 @@ class WinServiceTestCase(TestCase):
|
|||
scheduler to enable restarting the salt-minion
|
||||
'''
|
||||
mock_true = MagicMock(return_value=True)
|
||||
with patch.dict(win_service.__salt__, {'cmd.run': mock_true}):
|
||||
with patch.dict(win_service.__salt__, {'cmd.shell': mock_true}):
|
||||
self.assertTrue(win_service.create_win_salt_restart_task())
|
||||
|
||||
def test_execute_salt_restart_task(self):
|
||||
|
@ -157,7 +157,7 @@ class WinServiceTestCase(TestCase):
|
|||
Test to run the Windows Salt restart task
|
||||
'''
|
||||
mock_true = MagicMock(return_value=True)
|
||||
with patch.dict(win_service.__salt__, {'cmd.run': mock_true}):
|
||||
with patch.dict(win_service.__salt__, {'cmd.shell': mock_true}):
|
||||
self.assertTrue(win_service.execute_salt_restart_task())
|
||||
|
||||
def test_status(self):
|
||||
|
|
Loading…
Add table
Reference in a new issue