mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fixed some lint
This commit is contained in:
parent
638dec5027
commit
69c32a663e
1 changed files with 2 additions and 2 deletions
|
@ -621,7 +621,7 @@ class FileTestCase(TestCase):
|
|||
False])):
|
||||
with patch.object(os.path, 'lexists', mock_t):
|
||||
with patch.object(filestate.__salt__,
|
||||
{'file.is_link', mock_f}):
|
||||
{'file.is_link': mock_f}):
|
||||
with patch.object(os.path, 'isdir', mock_f):
|
||||
comt = ('File exists where the backup target'
|
||||
' A should go')
|
||||
|
@ -1376,7 +1376,7 @@ class FileTestCase(TestCase):
|
|||
comt = ('Failed to delete "{0}" in preparation for '
|
||||
'forced move'.format(name))
|
||||
with patch.object(filestate.__salt__,
|
||||
{'file.remove', mock_f},
|
||||
{'file.remove': mock_f},
|
||||
MagicMock(side_effect=[IOError, True])):
|
||||
ret.update({'comment': comt, 'result': False})
|
||||
self.assertDictEqual(filestate.rename(name, source,
|
||||
|
|
Loading…
Add table
Reference in a new issue