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 |
| 10 | compatible with Python 2.7 and up, and 3.2 and up. |
| 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>`_ |
| 20 | :Issue tracker: `Github Issues |
| 21 | <https://github.com/testing-cabal/mock/issues>`_ |
| 22 | :Build status: |
| 23 | .. image:: https://travis-ci.org/testing-cabal/mock.svg?branch=master |
| 24 | :target: https://travis-ci.org/testing-cabal/mock |
Michael Foord | 1e68bec | 2012-03-03 22:24:30 +0000 | [diff] [blame] | 25 | |
Robert Collins | 18c9bbd | 2015-07-10 14:00:11 +1200 | [diff] [blame] | 26 | .. _Mock Homepage: https://github.com/testing-cabal/mock |
| 27 | .. _BSD License: http://github.com/testing-cabal/mock/blob/master/LICENSE.txt |
| 28 | .. _Python Docs: https://docs.python.org/dev/library/unittest.mock.html |
| 29 | .. _mock on PyPI: http://pypi.python.org/pypi/mock |