https://github.com/testing-cabal/mock
The Python mock library
https://github.com/testing-cabal/mock
Last synced: 3 months ago
JSON representation
The Python mock library
- Host: GitHub
- URL: https://github.com/testing-cabal/mock
- Owner: testing-cabal
- License: bsd-2-clause
- Created: 2015-04-21T20:50:49.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2025-03-03T12:31:44.000Z (11 months ago)
- Last Synced: 2025-10-18T18:01:11.017Z (3 months ago)
- Language: Python
- Homepage: https://docs.python.org/dev/library/unittest.mock.html
- Size: 1.65 MB
- Stars: 538
- Watchers: 21
- Forks: 105
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG.rst
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-python-fa - **mock** - کتابخانهای برای شبیهسازی اشیاء در هنگام نوشتن تست. این ابزار برای تستهایی که نیاز به اشیاء خارجی یا توابع پیچیده دارند، بسیار مفید است. (📚 فهرست / تست و دیباگ)
README
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 `unittest.mock
`_ 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.
:Homepage: `Mock Homepage`_
:Download: `Mock on PyPI`_
:Documentation: `Python Docs`_
:License: `BSD License`_
:Support: `Mailing list (testing-in-python@lists.idyll.org)
`_
:Code: `GitHub
`_
:Issue tracker: `GitHub Issues
`_
:Build status:
|CircleCI|_ |Docs|_
.. |CircleCI| image:: https://circleci.com/gh/testing-cabal/mock/tree/master.svg?style=shield
.. _CircleCI: https://circleci.com/gh/testing-cabal/mock/tree/master
.. |Docs| image:: https://readthedocs.org/projects/mock/badge/?version=latest
.. _Docs: http://mock.readthedocs.org/en/latest/
.. _Mock Homepage: http://mock.readthedocs.org/en/latest/
.. _BSD License: https://github.com/testing-cabal/mock/blob/master/LICENSE.txt
.. _Python Docs: https://docs.python.org/dev/library/unittest.mock.html
.. _mock on PyPI: https://pypi.org/project/mock/