Path: csiph.com!aioe.org!bofh.it!news.nic.it!robomod From: Edward Betts 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: Tue, 12 Jul 2022 00:30:01 +0200 Message-ID: X-Original-To: Debian Bug Tracking System X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Mon Jul 11 22:27:10 2022 Old-Return-Path: X-Spam-Flag: NO X-Spam-Score: -3.761 Reply-To: Edward Betts , 1014788@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: debian-devel@lists.debian.org, debian-python@lists.debian.org, wnpp@debian.org X-Debian-Pr-Message: report 1014788 X-Debian-Pr-Package: wnpp MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Debian-Message: from BTS X-Mailing-List: archive/latest/1724744 List-ID: List-URL: Approved: robomod@news.nic.it Lines: 26 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Mon, 11 Jul 2022 23:24:45 +0100 X-Original-Message-ID: <20220711222445.fpzzz2dt7pjnqk2p@4angle.com> Xref: csiph.com linux.debian.bugs.dist:1109416 linux.debian.devel:104974 linux.debian.maint.python:14238 Package: wnpp Severity: wishlist Owner: Edward Betts 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 * 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.