Contents

mock 5.1.0

0

Rolling backport of unittest.mock for all Pythons

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

Stars: 529, Watchers: 529, Forks: 105, Open Issues: 0

The testing-cabal/mock repo was created 8 years ago and the last code push was 8 months ago.
The project is popular with 529 github stars!

How to Install mock

You can install mock using pip

pip install mock

or add it to a project with poetry

poetry add mock

Package Details

Author
Testing Cabal
License
Homepage
http://mock.readthedocs.org/en/latest/
PyPi:
https://pypi.org/project/mock/
GitHub Repo:
https://github.com/testing-cabal/mock

Classifiers

  • Software Development/Libraries
  • Software Development/Libraries/Python Modules
  • Software Development/Testing
No  mock  pypi packages just yet.

Errors

A list of common mock errors.

Code Examples

Here are some mock code examples and snippets.

Related Packages & Articles

mobly 1.12.3

Automation framework for special end-to-end test cases

mixer 7.2.2

Mixer – Is a fixtures replacement. Supported Django ORM, SqlAlchemy ORM, Mongoengine ODM and custom python objects.

fake-factory 9999.9.9

The fake-factory package was deprecated on December 15th, 2016. Use the Faker package instead.