Skip to content

use unittest.mock from standard library#272

Open
a-detiste wants to merge 1 commit into
laurentS:masterfrom
a-detiste:master
Open

use unittest.mock from standard library#272
a-detiste wants to merge 1 commit into
laurentS:masterfrom
a-detiste:master

Conversation

@a-detiste
Copy link
Copy Markdown

Hi,

The old external "mock" module is now fossilized.
"mock" has been merged into the python standard library since ages under the name "unittest.mock"

https://github.com/testing-cabal/mock

mock is a library for testing in Python. It allows you to replace parts of your system under test with mock objects and make assertions about how they have been used.

mock is now part of the Python standard library, available as unittest.mock in Python 3.3 onwards.

This package contains a rolling backport of the standard library mock code compatible with Python 3.6 and up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant