python3-mock-open
Better mock for file I/O
Description
The MockOpen class should work as a stand-in replacement for mock.mock_open with some added features (though it tries to conform to how the builtin 'open' works where the two differ). Features include: * Multiple file support, including a mapping-like access to file mocks by
path.
* Persistent file contents between calls to `open`.
* All the regular file operations: 'read', 'readline', 'readlines', 'write',
'writelines', 'seek', 'tell'.
Upload more screenshots
Please help extend the collection of screenshots. Just make a screenshot and upload it here. You don't need to register or anything.
Upload a screenshotHint: upload an image here from your clipboard with Ctrl-V
Homepage
https://github.com/nivbend/mock-open
Install this software package
If the package is available for the distribution you are currently using on your computer then install the software by clicking on…
Install python3-mock-open