Need help with mock?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

496 Stars 95 Forks BSD 2-Clause "Simplified" License 1.3K Commits 0 Opened issues


The Python mock library

Services available


Need anything else?

Contributors list

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

_ in Python 3.3 onwards.

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

Please see the standard library documentation for more details.


Mock Homepage
_ :Download:
Mock on PyPI
_ :Documentation:
Python Docs
_ :License:
BSD License
_ :Support:
Mailing list ([email protected])
_ :Code:
_ :Issue tracker:
GitHub Issues
_ :Build status: |CircleCI|_ |Docs|_
.. |CircleCI| image::
.. _CircleCI:

.. |Docs| image:: .. _Docs:

.. _Mock Homepage: .. _BSD License: .. _Python Docs: .. _mock on PyPI:

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.