Michael Foord | 1e68bec | 2012-03-03 22:24:30 +0000 | [diff] [blame] | 1 | mock is a library for testing in Python. It allows you to replace parts of |
| 2 | your system under test with mock objects and make assertions about how they |
| 3 | have been used. |
| 4 | |
Michael Foord | dc1458a | 2012-10-07 18:43:23 +0100 | [diff] [blame] | 5 | mock is now part of the Python standard library, available as `unittest.mock |
Robert Collins | 6f72979 | 2015-07-10 11:16:31 +1200 | [diff] [blame] | 6 | <https://docs.python.org/dev/library/unittest.mock.html>`_ in Python 3.3 |
| 7 | onwards. |
Michael Foord | 2df6611 | 2012-10-07 18:33:12 +0100 | [diff] [blame] | 8 | |
Robert Collins | 6f72979 | 2015-07-10 11:16:31 +1200 | [diff] [blame] | 9 | This package contains a rolling backport of the standard library mock code |
Hugo | 59130a4 | 2018-05-08 08:23:53 +0300 | [diff] [blame] | 10 | compatible with Python 2.7 and 3.4 and up. |
Robert Collins | 6f72979 | 2015-07-10 11:16:31 +1200 | [diff] [blame] | 11 | |
| 12 | Please see the standard library documentation for more details. |
Michael Foord | 1e68bec | 2012-03-03 22:24:30 +0000 | [diff] [blame] | 13 | |
Robert Collins | 18c9bbd | 2015-07-10 14:00:11 +1200 | [diff] [blame] | 14 | :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 Withers | 1916b1d | 2019-05-02 10:11:48 +0100 | [diff] [blame] | 20 | :Code: `GitHub |
| 21 | <https://github.com/testing-cabal/mock>`_ |
Hugo | b67fe8a | 2017-10-28 16:01:45 +0300 | [diff] [blame] | 22 | :Issue tracker: `GitHub Issues |
Robert Collins | 18c9bbd | 2015-07-10 14:00:11 +1200 | [diff] [blame] | 23 | <https://github.com/testing-cabal/mock/issues>`_ |
| 24 | :Build status: |
Chris Withers | 337e3e1 | 2019-05-02 08:50:00 +0100 | [diff] [blame] | 25 | |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 Foord | 1e68bec | 2012-03-03 22:24:30 +0000 | [diff] [blame] | 32 | |
Chris Withers | 1916b1d | 2019-05-02 10:11:48 +0100 | [diff] [blame] | 33 | .. _Mock Homepage: http://mock.readthedocs.org/en/latest/ |
Hugo | 59130a4 | 2018-05-08 08:23:53 +0300 | [diff] [blame] | 34 | .. _BSD License: https://github.com/testing-cabal/mock/blob/master/LICENSE.txt |
Robert Collins | 18c9bbd | 2015-07-10 14:00:11 +1200 | [diff] [blame] | 35 | .. _Python Docs: https://docs.python.org/dev/library/unittest.mock.html |
Jon Dufresne | 34e5101 | 2018-04-26 06:00:29 -0700 | [diff] [blame] | 36 | .. _mock on PyPI: https://pypi.org/project/mock/ |