mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
More test fixing
This commit is contained in:
parent
a9cdb633a4
commit
ca3f40b94e
@ -297,13 +297,15 @@ class FileTestCase(TestCase):
|
||||
{'file.remove': mock_file}):
|
||||
comt = ('Removed file {0}'.format(name))
|
||||
ret.update({'comment': comt, 'result': True,
|
||||
'changes': {'removed': name}})
|
||||
'changes': {'removed': name},
|
||||
'pchanges': {'removed': name}})
|
||||
self.assertDictEqual(filestate.absent(name), ret)
|
||||
|
||||
comt = ('Removed file {0}'.format(name))
|
||||
ret.update({'comment': '',
|
||||
'result': False,
|
||||
'changes': {}})
|
||||
'changes': {},
|
||||
'pchanges': {}})
|
||||
self.assertDictEqual(filestate.absent(name), ret)
|
||||
|
||||
with patch.object(os.path, 'isfile', mock_f):
|
||||
|
Loading…
Reference in New Issue
Block a user