mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Pylint fix
This commit is contained in:
parent
f42ca4b576
commit
86a5e04417
@ -142,9 +142,9 @@ class ServiceTestCase(TestCase):
|
||||
self.assertDictEqual(service.dead("salt"), ret[2])
|
||||
|
||||
with patch.dict(service.__opts__, {'test': False}):
|
||||
with patch.dict( service.__salt__, {'service.enabled': fmock,
|
||||
'service.stop': tmock,
|
||||
'service.status': fmock}):
|
||||
with patch.dict(service.__salt__, {'service.enabled': fmock,
|
||||
'service.stop': tmock,
|
||||
'service.status': fmock}):
|
||||
with patch.object(service, '_enable', mock):
|
||||
self.assertDictEqual(service.dead("salt", True), ret[1])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user