mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add mocked close() function to MockFH
This commit is contained in:
parent
f6b46bc608
commit
852ba4b982
1 changed files with 1 additions and 0 deletions
|
@ -99,6 +99,7 @@ class MockFH(object):
|
|||
self.filename = filename
|
||||
self.empty_string = b'' if isinstance(read_data, six.binary_type) else ''
|
||||
self.read_data = self._iterate_read_data(read_data)
|
||||
self.close = Mock()
|
||||
self.write = Mock()
|
||||
self.writelines = Mock()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue