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: 536, Watchers: 536, Forks: 107, Open Issues: 0

The testing-cabal/mock repo was created 9 years ago and the last code push was 5 months ago.
The project is popular with 536 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.4

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.