Contents

mock 5.2.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: 539, Watchers: 539, Forks: 104, Open Issues: 0

The testing-cabal/mock repo was created 10 years ago and the last code push was 11 months ago.
The project is popular with 539 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
None
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.13

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.