Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #14238

Bug#1014788: ITP: python-mock-open -- Better mock for file I/O

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
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 Tue, 12 Jul 2022 00:30:01 +0200
Message-ID <EIa4F-aIRC-5@gated-at.bofh.it> (permalink)
X-Original-To Debian Bug Tracking System <submit@bugs.debian.org>
X-Mailbox-Line From debian-bugs-dist-request@lists.debian.org Mon Jul 11 22:27:10 2022
Old-Return-Path <debbugs@buxtehude.debian.org>
X-Spam-Flag NO
X-Spam-Score -3.761
Reply-To Edward Betts <edward@4angle.com>, 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 <debian-bugs-dist@lists.debian.org> archive/latest/1724744
List-ID <debian-bugs-dist.lists.debian.org>
List-URL <https://lists.debian.org/debian-bugs-dist/>
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

Cross-posted to 3 groups.

Show key headers only | View raw


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


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