mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Fixed tests
This commit is contained in:
parent
ad44d79f26
commit
b3f284c517
@ -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…
Reference in New Issue
Block a user