Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #14238
| From | Edward Betts <edward@4angle.com> |
|---|---|
| Newsgroups | linux.debian.bugs.dist, linux.debian.devel, linux.debian.maint.python |
| Subject | Bug#1014788: ITP: python-mock-open -- Better mock for file I/O |
| Date | 2022-07-12 00:30 +0200 |
| Message-ID | <EIa4F-aIRC-5@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
Cross-posted to 3 groups.
Package: wnpp
Severity: wishlist
Owner: Edward Betts <edward@4angle.com>
X-Debbugs-Cc: debian-devel@lists.debian.org, debian-python@lists.debian.org
* Package name : python-mock-open
Version : 1.4.0
Upstream Author : Niv Ben-David <nivbend@gmail.com>
* URL : https://github.com/nivbend/mock-open
* License : MIT
Programming Lang: Python
Description : Better mock for file I/O
The MockOpen class works 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'.
I plan to maintain this package as part of the Python modules team.
Back to linux.debian.maint.python | Previous | Next | Find similar | Unroll thread
Bug#1014788: ITP: python-mock-open -- Better mock for file I/O Edward Betts <edward@4angle.com> - 2022-07-12 00:30 +0200
csiph-web