Skip to main content

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

Metadata

Release files for mock 5.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mock 5.2.0
File Size Uploaded
mock-5.2.0.tar.gz 92.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mock 5.2.0
File Interpreter ABI Platform
mock-5.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 124.4 kB

Release files / mock-5.2.0.tar.gz

Download URL mock-5.2.0.tar.gz
Size 92.8 kB
Tags Source
SHA-256 checksum
How to use checksums
4e460e818629b4b173f32d08bf30d3af8123afbb8e04bb5707a1fd4799e503f0
BLAKE2b-256 checksum
How to use checksums
078c14c2ae915e5f9dca5a22edd68b35be94400719ccfa068a03e0fb63d0f6f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.11

Release files / mock-5.2.0-py3-none-any.whl

Download URL mock-5.2.0-py3-none-any.whl
Size 31.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7ba87f72ca0e915175596069dbbcc7c75af7b5e9b9bc107ad6349ede0819982f
BLAKE2b-256 checksum
How to use checksums
bdd9617e6af809bf3a1d468e0d58c3997b1dc219a9a9202e650d30c2fc85d481
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.11

Release history Release notifications | RSS feed

This release

5.2.0 This release

2 release files

5.1.0

2 release files

5.0.2

2 release files

5.0.1

2 release files

5.0.0

2 release files

4.0.3

2 release files

4.0.2

2 release files

4.0.1

2 release files

4.0.0

1 release file

3.0.5

2 release files

3.0.4

2 release files

3.0.3

2 release files

3.0.2

2 release files

3.0.1

2 release files

3.0.0

2 release files

2.0.0

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.4

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

1 release file

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.8.0

2 release files

0.7.2

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

1 release file

0.4.0

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page