mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Fix one more salt.utils fopen reference to point to files
This commit is contained in:
parent
89d957b124
commit
3f0945b9b7
@ -1011,7 +1011,7 @@ class TestFileState(TestCase, LoaderModuleMockMixin):
|
||||
self.assertDictEqual(filestate.comment(name, regex), ret)
|
||||
|
||||
with patch.dict(filestate.__opts__, {'test': False}):
|
||||
with patch.object(salt.utils, 'fopen',
|
||||
with patch.object(salt.utils.files, 'fopen',
|
||||
MagicMock(mock_open())):
|
||||
comt = ('Commented lines successfully')
|
||||
ret.update({'comment': comt, 'result': True})
|
||||
|
Loading…
Reference in New Issue
Block a user