mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix bad mock in win_service_test
This commit is contained in:
parent
44dea20bf3
commit
f27b602a0f
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ class WinServiceTestCase(TestCase):
|
|||
Test to return all installed services
|
||||
'''
|
||||
mock = MagicMock(return_value="")
|
||||
with patch.dict(win_service.__salt__, {'cmd.run': mock}):
|
||||
with patch.dict(win_service.__salt__, {'cmd.shell': mock}):
|
||||
self.assertListEqual(win_service.get_all(), [])
|
||||
|
||||
def test_get_service_name(self):
|
||||
|
|
Loading…
Add table
Reference in a new issue