Rolling backport of unittest.mock for all Pythons
Project Links
Meta
Author: Testing Cabal
Requires Python: >=3.6
Classifiers
Development Status
- 5 - Production/Stable
Environment
- Console
Intended Audience
- Developers
License
- OSI Approved :: BSD License
Operating System
- OS Independent
Programming Language
- Python
- Python :: 3.6
- Python :: 3.7
- Python :: 3.8
- Python :: 3.9
- Python :: 3.10
- Python :: 3.11
- Python :: 3.12
- Python :: 3.13
- Python :: Implementation :: CPython
- Python :: Implementation :: PyPy
Topic
- Software Development :: Libraries
- Software Development :: Libraries :: Python Modules
- Software Development :: Testing
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:
- Download:
- Documentation:
- License:
- Support:
- Code:
- Issue tracker:
- Build status:
5.2.0
Mar 03, 2025
5.1.0
Jul 11, 2023
5.0.2
Apr 16, 2023
5.0.1
Jan 09, 2023
5.0.0
Dec 28, 2022
4.0.3
Dec 10, 2020
4.0.2
Mar 11, 2020
4.0.1
Feb 06, 2020
4.0.0
Feb 05, 2020
4.0.0b1
Jan 29, 2020
3.0.5
May 07, 2019
3.0.4
May 04, 2019
3.0.3
May 02, 2019
3.0.2
May 02, 2019
3.0.1
May 02, 2019
3.0.0
May 02, 2019
2.0.0
Apr 06, 2016
1.3.0
Jul 23, 2015
1.2.0
Jul 17, 2015
1.1.4
Jul 17, 2015
1.1.3
Jul 14, 2015
1.1.2
Jul 10, 2015
1.1.1
Jul 10, 2015
1.1.0
Jul 10, 2015
1.0.1
Nov 05, 2012
1.0.0
Oct 07, 2012
1.0b1
Jul 13, 2012
0.8.0
Feb 13, 2012
0.7.2
May 30, 2011
0.7.1
May 10, 2011
0.7.0
Mar 05, 2011
0.7.0rc1
Feb 16, 2011
0.7.0b4
Nov 12, 2010
0.7.0b3
Sep 18, 2010
0.7.0b2
Jun 23, 2010
0.7.0b1
Jun 22, 2010
0.6.0
Aug 22, 2009
0.5.0
Apr 20, 2009
0.4.0
Oct 12, 2008