mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Update newly added test to reflect renaming of handles attribute
This commit is contained in:
parent
77e5288d42
commit
6acb4c83ec
1 changed files with 1 additions and 1 deletions
|
@ -1103,7 +1103,7 @@ class FilemodLineTests(TestCase, LoaderModuleMockMixin):
|
|||
patch('salt.utils.atomicfile.atomic_open',
|
||||
mock_open()) as atomic_open_mock:
|
||||
filemod.line(name, content=cfg_content, after=after_line, mode='insert', indent=False)
|
||||
handles = atomic_open_mock.handles[name]
|
||||
handles = atomic_open_mock.filehandles[name]
|
||||
# We should only have opened the file once
|
||||
open_count = len(handles)
|
||||
assert open_count == 1, open_count
|
||||
|
|
Loading…
Add table
Reference in a new issue