[New-bugs-announce] [issue25690] Replacement for unittest.mock.mock_open

Niv Ben-David report at bugs.python.org
Sat Nov 21 11:23:04 EST 2015


New submission from Niv Ben-David:

The unittest.mock module defines a mock_open utility to mock the builtin open function.

During a recent project I found I needed something more. Specifically, mocking different files at the same time, better mocking for operations (like seek, readlines, etc.) among others.

The project can also be found on http://github.com/nivbend/mock-open

Thanks

----------
components: Library (Lib)
files: mock_open.patch
keywords: patch
messages: 255061
nosy: Niv Ben-David
priority: normal
severity: normal
status: open
title: Replacement for unittest.mock.mock_open
type: enhancement
versions: Python 3.6
Added file: http://bugs.python.org/file41113/mock_open.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25690>
_______________________________________


More information about the New-bugs-announce mailing list