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-5.0.2.tar.gz (77.5 kB view details)

Uploaded Source

Built Distribution

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

mock-5.0.2-py3-none-any.whl (30.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mock-5.0.2.tar.gz
  • Upload date:
  • Size: 77.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for mock-5.0.2.tar.gz
Algorithm Hash digest
SHA256 06f18d7d65b44428202b145a9a36e99c2ee00d1eb992df0caf881d4664377891
MD5 bf32d9161425142680baa08965f56b81
BLAKE2b-256 71c884310fa618bebe51a533d8fd3a71e8ab406a10d8a388061a9e8e628da65a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mock-5.0.2-py3-none-any.whl
  • Upload date:
  • Size: 30.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for mock-5.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0e0bc5ba78b8db3667ad636d964eb963dc97a59f04c6f6214c5f0e4a8f726c56
MD5 be9e3e1de2a870eded5541681f3a6f30
BLAKE2b-256 276ffbb16f260a7107ee98871d83f6793d88c4311b7189b10ef239da0b2181db

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