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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mock-4.0.2.tar.gz (72.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mock-4.0.2-py3-none-any.whl (28.7 kB view details)

Uploaded Python 3

File details

Details for the file mock-4.0.2.tar.gz.

File metadata

  • Download URL: mock-4.0.2.tar.gz
  • Upload date:
  • Size: 72.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.43.0 CPython/3.7.6

File hashes

Hashes for mock-4.0.2.tar.gz
Algorithm Hash digest
SHA256 dd33eb70232b6118298d516bbcecd26704689c386594f0f3c4f13867b2c56f72
MD5 6466619b89c2969dc57722ad73f85676
BLAKE2b-256 2e35594f501b2a0fb3732c8190ca885dfdf60af72d678cd5fa8169c358717567

See more details on using hashes here.

File details

Details for the file mock-4.0.2-py3-none-any.whl.

File metadata

  • Download URL: mock-4.0.2-py3-none-any.whl
  • Upload date:
  • Size: 28.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.43.0 CPython/3.7.6

File hashes

Hashes for mock-4.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3f9b2c0196c60d21838f307f5825a7b86b678cedc58ab9e50a8988187b4d81e0
MD5 57359e450a8d5b6b43df85a7e4a52783
BLAKE2b-256 cd74d72daf8dff5b6566db857cfd088907bb0355f5dd2914c4b3ef065c790735

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page