blob: b4f3163cc124ddce547407234b055cd19ace5abc [file] [log] [blame]
Michael Foord1e68bec2012-03-03 22:24:30 +00001mock is a library for testing in Python. It allows you to replace parts of
2your system under test with mock objects and make assertions about how they
3have been used.
4
Michael Foorddc1458a2012-10-07 18:43:23 +01005mock is now part of the Python standard library, available as `unittest.mock
Robert Collins6f729792015-07-10 11:16:31 +12006<https://docs.python.org/dev/library/unittest.mock.html>`_ in Python 3.3
7onwards.
Michael Foord2df66112012-10-07 18:33:12 +01008
Robert Collins6f729792015-07-10 11:16:31 +12009This package contains a rolling backport of the standard library mock code
Hugo59130a42018-05-08 08:23:53 +030010compatible with Python 2.7 and 3.4 and up.
Robert Collins6f729792015-07-10 11:16:31 +120011
12Please see the standard library documentation for more details.
Michael Foord1e68bec2012-03-03 22:24:30 +000013
Robert Collins18c9bbd2015-07-10 14:00:11 +120014:Homepage: `Mock Homepage`_
15:Download: `Mock on PyPI`_
16:Documentation: `Python Docs`_
17:License: `BSD License`_
18:Support: `Mailing list (testing-in-python@lists.idyll.org)
19 <http://lists.idyll.org/listinfo/testing-in-python>`_
Chris Withers1916b1d2019-05-02 10:11:48 +010020:Code: `GitHub
21 <https://github.com/testing-cabal/mock>`_
Hugob67fe8a2017-10-28 16:01:45 +030022:Issue tracker: `GitHub Issues
Robert Collins18c9bbd2015-07-10 14:00:11 +120023 <https://github.com/testing-cabal/mock/issues>`_
24:Build status:
Chris Withers337e3e12019-05-02 08:50:00 +010025 |CircleCI|_ |Docs|_
26
27 .. |CircleCI| image:: https://circleci.com/gh/testing-cabal/mock/tree/master.svg?style=shield
28 .. _CircleCI: https://circleci.com/gh/testing-cabal/mock/tree/master
29
30 .. |Docs| image:: https://readthedocs.org/projects/mock/badge/?version=latest
31 .. _Docs: http://mock.readthedocs.org/en/latest/
Michael Foord1e68bec2012-03-03 22:24:30 +000032
Chris Withers1916b1d2019-05-02 10:11:48 +010033.. _Mock Homepage: http://mock.readthedocs.org/en/latest/
Hugo59130a42018-05-08 08:23:53 +030034.. _BSD License: https://github.com/testing-cabal/mock/blob/master/LICENSE.txt
Robert Collins18c9bbd2015-07-10 14:00:11 +120035.. _Python Docs: https://docs.python.org/dev/library/unittest.mock.html
Jon Dufresne34e51012018-04-26 06:00:29 -070036.. _mock on PyPI: https://pypi.org/project/mock/